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:delete()
|
||||||
currentlyChosen = nil
|
currentlyChosen = nil
|
||||||
else
|
else
|
||||||
|
if key == "backspace" then
|
||||||
|
key = "none"
|
||||||
|
end
|
||||||
KEYMAP[currentlyChosen.data.player][currentlyChosen.data.key][currentlyChosen.data.bindingIdx] = key
|
KEYMAP[currentlyChosen.data.player][currentlyChosen.data.key][currentlyChosen.data.bindingIdx] = key
|
||||||
currentlyChosen.data.label.label = key
|
currentlyChosen.data.label.label = key
|
||||||
currentlyChosen:delete()
|
currentlyChosen:delete()
|
||||||
|
|
Loading…
Reference in a new issue