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 8c3e6e51c5
commit a89e1bf462
2 changed files with 8 additions and 2 deletions

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)