Simpler test, avoid errors in console.
This commit is contained in:
parent
a205ea65d5
commit
e8be033102
@ -1125,7 +1125,7 @@
|
||||
} else if (kc === 8) {
|
||||
key = '';
|
||||
}
|
||||
if (key.length >= 0) {
|
||||
if (key != null) {
|
||||
if (key) {
|
||||
if (e.altKey) {
|
||||
key = 'alt+' + key;
|
||||
|
||||
@ -896,7 +896,7 @@ options =
|
||||
else if kc is 8
|
||||
key = ''
|
||||
|
||||
if key.length >= 0
|
||||
if key?
|
||||
if key
|
||||
key = 'alt+' + key if e.altKey
|
||||
key = 'ctrl+' + key if e.ctrlKey
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user