KeyShortcutHandler allow capital letters. close #68
This commit is contained in:
@@ -36,5 +36,7 @@
|
||||
(case (id.toString)
|
||||
((when (KEY_MAP.exists key) key)
|
||||
(dictGet KEY_MAP key))
|
||||
((when FlxG.keys.pressed.SHIFT key)
|
||||
(.toUpperCase key))
|
||||
(key (.toLowerCase key))
|
||||
(otherwise (throw "FlxKey.toString returned null!")))))))
|
@@ -51,7 +51,7 @@
|
||||
((Some _)
|
||||
(case (stream.takeUntilAndDrop "]")
|
||||
((Some newShortcuts)
|
||||
(extractKeyboardShortcuts str stream (+ shortcuts (newShortcuts.toLowerCase))))
|
||||
(extractKeyboardShortcuts str stream (+ shortcuts newShortcuts)))
|
||||
(otherwise
|
||||
(tryCallOrThrow onBadShortcut "unclosed [ in $str" str null)
|
||||
"")))
|
||||
|
Reference in New Issue
Block a user