summaryrefslogtreecommitdiff
path: root/keybinds.h
diff options
context:
space:
mode:
Diffstat (limited to 'keybinds.h')
-rw-r--r--keybinds.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/keybinds.h b/keybinds.h
index 43f6ef3..07d9aea 100644
--- a/keybinds.h
+++ b/keybinds.h
@@ -8,6 +8,7 @@
#include <vector>
#include "commands.h"
+#include "config.h"
#include "util.h"
struct Keybind {
@@ -18,12 +19,14 @@ struct Keybind {
class KeybindsModule {
public:
- KeybindsModule(CommandsModule& commandsModule, Globals& globals);
+ KeybindsModule(CommandsModule& commandsModule, Config& cfg, Globals& globals);
~KeybindsModule() = default;
const void bind(const CommandArg* argv);
const void handleKeypress(XKeyEvent e);
+ const void clearKeybinds();
private:
std::vector<Keybind> binds;
CommandsModule& commandsModule;
+ Config& cfg;
Globals& globals;
};