Add KeyShortcutHandler to every NAT UI, KeyShortcutSystem
This commit is contained in:
@@ -9,7 +9,7 @@ typedef PrefixMapHandler<T> = (Map<String, ShortcutKey<T>>) -> Void;
|
||||
typedef ItemHandler<T> = (T) -> Void;
|
||||
typedef FinishHandler = () -> Void;
|
||||
typedef BadKeyHandler<T> = (String, PrefixMap<T>) -> Void;
|
||||
typedef BadShortcutHandler<T> = (String,ShortcutKey<T>) -> Void;
|
||||
typedef BadShortcutHandler<T> = (String, ShortcutKey<T>) -> Void;
|
||||
|
||||
enum ShortcutKey<T> {
|
||||
Final(item:T);
|
||||
|
@@ -83,4 +83,3 @@
|
||||
(method :Void registerItem [description :T item]
|
||||
(whenLet [keyboardShortcut (extractKeyboardShortcuts description)]
|
||||
(registerShortcut (keyboardShortcut.split "") description item)))
|
||||
|
||||
|
Reference in New Issue
Block a user