diff options
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index e5509c22..3d520d27 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -13,7 +13,14 @@ class Editor; class Context; using MenuCallback = std::function<void (int, Context&)>; -using PromptCallback = std::function<void (const String&, Context&)>; + +enum class PromptEvent +{ + Change, + Abort, + Validate +}; +using PromptCallback = std::function<void (const String&, PromptEvent, Context&)>; using KeyCallback = std::function<void (const Key&, Context&)>; class InputMode; |
