Pass KeyShortcutHandler consumers a printable prefixmap represention. Close #154.
This commit is contained in:
@@ -18,7 +18,7 @@ interface ArchiveUI {
|
||||
*/
|
||||
var shortcutHandler(default, null):Null<KeyShortcutHandler<Entry>>;
|
||||
|
||||
function showPrefixMap(map:Map<String,ShortcutKey<Entry>>):Void;
|
||||
function showPrefixMap(map:Map<String,String>):Void;
|
||||
function hidePrefixMap():Void;
|
||||
|
||||
/**
|
||||
|
@@ -11,7 +11,7 @@
|
||||
{
|
||||
(when (and ui ui.shortcutHandler)
|
||||
(unless setup
|
||||
(set ui.shortcutHandler.onSelectPrefixMap ui.showPrefixMap)
|
||||
(set ui.shortcutHandler.onSelectPrefixMap ->:Void [_ map] (ui.showPrefixMap map))
|
||||
(set ui.shortcutHandler.onSelectItem
|
||||
->e {
|
||||
(ui.hidePrefixMap)
|
||||
|
Reference in New Issue
Block a user