habit-puzzles work around key conflict handling by not allowing custom shortcuts

This commit is contained in:
2022-10-21 19:58:08 +00:00
parent 3626c93e38
commit ad6d9eac75
6 changed files with 27 additions and 18 deletions

View File

@@ -15,7 +15,10 @@ import flixel.util.FlxTimer;
import flixel.FlxCamera;
/**
* KissInputText based on
* KissInputText is based on FlxInputText.
*
* It is modified to be compatible with kiss_flixel's SimpleWindow
*
* FlxInputText v1.11, ported to Haxe
* @author larsiusprime, (Lars Doucet)
* @link http://github.com/haxeflixel/flixel-ui

View File

@@ -64,7 +64,10 @@
(set keyHandler.onBadKey ->:Void [key context]
(unless (= key xKey)
(print "bad key $key in context $context"))) // TODO do SOMETHING like visual/audio bell, cancel and restart
(#when debug
(print "bad key $key in context $context"))
// TODO do SOMETHING like visual/audio bell, cancel and restart
))
(set keyHandler.onSelectItem
->:Void [:ShortcutAction a] {
(a)