diff --git a/4chan_x.user.js b/4chan_x.user.js index 755d2352f..99f1d37d9 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1125,7 +1125,7 @@ } else if (kc === 8) { key = ''; } - if (key.length >= 0) { + if (key != null) { if (key) { if (e.altKey) { key = 'alt+' + key; diff --git a/script.coffee b/script.coffee index cdd792315..faa3720d5 100644 --- a/script.coffee +++ b/script.coffee @@ -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