From 4c4d3cdd382438283a4774ef5d4cffb1d39181cf Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 23 Sep 2014 13:45:18 +0100 Subject: Add support for mapping keys in goto/view commands --- src/input_handler.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/input_handler.hh') 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; 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); -- cgit v1.2.3