diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-12-14 19:38:11 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-12-14 19:38:11 +0100 |
| commit | d208067589b93b8e264699b1d6dd14aeb8022837 (patch) | |
| tree | 2d519e5f969c5b5fefc55341c5eb386c9d58fbbd /src/input_handler.hh | |
| parent | 3184159572e2d336d5a61393f9fb939f684678af (diff) | |
InputHandler: call callback on abort and on selected element change as well
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 3d520d27..efba4fcb 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -12,7 +12,13 @@ namespace Kakoune class Editor; class Context; -using MenuCallback = std::function<void (int, Context&)>; +enum class MenuEvent +{ + Select, + Abort, + Validate +}; +using MenuCallback = std::function<void (int, MenuEvent, Context&)>; enum class PromptEvent { |
