Simpler test, avoid errors in console.

This commit is contained in:
Nicolas Stepien 2011-06-24 21:47:29 +02:00
parent a205ea65d5
commit e8be033102
2 changed files with 2 additions and 2 deletions

View File

@ -1125,7 +1125,7 @@
} else if (kc === 8) {
key = '';
}
if (key.length >= 0) {
if (key != null) {
if (key) {
if (e.altKey) {
key = 'alt+' + key;

View File

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