add KEY_ESC message type, and refactor app-update.sml to use it (always calls 'clearMode' function which always sets the app to normal mode, and sets the command strnig to empty)
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
signature INPUT_MSG =
|
||||
sig
|
||||
datatype t =
|
||||
RESIZE_EVENT of int * int
|
||||
| CHAR_EVENT of char
|
||||
CHAR_EVENT of char
|
||||
| KEY_ESC
|
||||
| RESIZE_EVENT of int * int
|
||||
end
|
||||
|
||||
structure InputMsg :> INPUT_MSG =
|
||||
struct
|
||||
datatype t =
|
||||
RESIZE_EVENT of int * int
|
||||
| CHAR_EVENT of char
|
||||
CHAR_EVENT of char
|
||||
| KEY_ESC
|
||||
| RESIZE_EVENT of int * int
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user