Ability to remove keybindings with backspace
This commit is contained in:
parent
cbc89f5c76
commit
53ac2c612c
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ function menu_state:keypressed(key, unicode)
|
|||
currentlyChosen:delete()
|
||||
currentlyChosen = nil
|
||||
else
|
||||
if key == "backspace" then
|
||||
key = "none"
|
||||
end
|
||||
KEYMAP[currentlyChosen.data.player][currentlyChosen.data.key][currentlyChosen.data.bindingIdx] = key
|
||||
currentlyChosen.data.label.label = key
|
||||
currentlyChosen:delete()
|
||||
|
|
Loading…
Reference in a new issue