update more keybinds

This commit is contained in:
Bui 2018-10-23 15:51:55 +01:00
parent 117e32e578
commit ab2e3d2417
3 changed files with 10 additions and 10 deletions

View File

@ -42,8 +42,8 @@ class Scoresheet{
code = event.keyCode
}
var key = {
confirm: code == 13 || code == 32 || code == 86 || code == 66,
// Enter, Space, V, B
confirm: code == 13 || code == 32 || code == 70 || code == 74,
// Enter, Space, F, J
cancel: code == 27 || code == 8
// Esc, Backspace
}

View File

@ -255,14 +255,14 @@ class SongSelect{
}
var key = {
confirm: code == 13 || code == 32 || code == 86 || code == 66,
// Enter, Space, V, B
confirm: code == 13 || code == 32 || code == 70 || code == 74,
// Enter, Space, F, J
cancel: code == 27 || code == 8,
// Esc, Backspace
left: code == 70 || code == 68,
// Left
right: code == 74 || code == 75
// Right
left: code == 68,
// Left, D
right: code == 75
// Right, K
}
if(key.cancel && event){
event.preventDefault()

View File

@ -17,8 +17,8 @@ class Titlescreen{
if(!code){
code = event.keyCode
}
if(code == 13 || code == 32 || code == 86 || code == 66){
// Enter, Space, V, B
if(code == 13 || code == 32 || code == 70 || code == 74){
// Enter, Space, F, J
this.onPressed()
}
}