summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-09-23 13:45:18 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-09-23 13:45:18 +0100
commit4c4d3cdd382438283a4774ef5d4cffb1d39181cf (patch)
treee5c5ab8943d8f0296a0880756aa8cc2bd6915675 /src/input_handler.hh
parent858132e7719cba2fcca4e3058ec37d86cdce132e (diff)
Add support for mapping keys in goto/view commands
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 5515de2a..7911f3c6 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -33,6 +33,7 @@ using KeyCallback = std::function<void (Key, Context&)>;
class InputMode;
class DisplayLine;
enum class InsertMode : unsigned;
+enum class KeymapMode : int;
class InputHandler : public SafeCountable
{
@@ -62,7 +63,7 @@ public:
// execute callback on next keypress and returns to normal mode
// if callback does not change the mode itself
- void on_next_key(KeyCallback callback);
+ void on_next_key(KeymapMode mode, KeyCallback callback);
// process the given key
void handle_key(Key key);