summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-07-26 01:44:25 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-07-26 01:50:36 +0200
commita4138201b09fa70bbccdeadf1f80bbc9ebe32046 (patch)
tree83377e9daba61479805806b7b4d6e2430a2451a3 /src/input_handler.hh
parenteedd37c09acace58ceadacf8ecf9e883a2fd5a4a (diff)
Key: always pass by value
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index ccd8426c..edc9e5e0 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -29,7 +29,7 @@ enum class PromptEvent
Validate
};
using PromptCallback = std::function<void (const String&, PromptEvent, Context&)>;
-using KeyCallback = std::function<void (const Key&, Context&)>;
+using KeyCallback = std::function<void (Key, Context&)>;
class InputMode;
enum class InsertMode : unsigned;