Ability to remove keybindings with backspace

This commit is contained in:
Erkki Seppälä 2014-10-24 09:27:17 +03:00
parent cbc89f5c76
commit 53ac2c612c

View file

@ -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()