don't allow lone alt/ctrl keybinds
This commit is contained in:
parent
78fcfd2c33
commit
ce6a995e98
@ -842,11 +842,13 @@
|
|||||||
} else {
|
} else {
|
||||||
key = '';
|
key = '';
|
||||||
}
|
}
|
||||||
if (e.altKey) {
|
if (key) {
|
||||||
key = 'alt+' + key;
|
if (e.altKey) {
|
||||||
}
|
key = 'alt+' + key;
|
||||||
if (e.ctrlKey) {
|
}
|
||||||
key = 'ctrl+' + key;
|
if (e.ctrlKey) {
|
||||||
|
key = 'ctrl+' + key;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -603,8 +603,9 @@ keybinds =
|
|||||||
key = 'Esc'
|
key = 'Esc'
|
||||||
else
|
else
|
||||||
key = ''
|
key = ''
|
||||||
if e.altKey then key = 'alt+' + key
|
if key
|
||||||
if e.ctrlKey then key = 'ctrl+' + key
|
if e.altKey then key = 'alt+' + key
|
||||||
|
if e.ctrlKey then key = 'ctrl+' + key
|
||||||
key
|
key
|
||||||
|
|
||||||
img: (thread, all) ->
|
img: (thread, all) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user