diff --git a/4chan_x.user.js b/4chan_x.user.js index bb6dbbf20..27a702569 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -842,11 +842,13 @@ } else { key = ''; } - if (e.altKey) { - key = 'alt+' + key; - } - if (e.ctrlKey) { - key = 'ctrl+' + key; + if (key) { + if (e.altKey) { + key = 'alt+' + key; + } + if (e.ctrlKey) { + key = 'ctrl+' + key; + } } return key; } diff --git a/script.coffee b/script.coffee index 596382646..8f805dda0 100644 --- a/script.coffee +++ b/script.coffee @@ -603,8 +603,9 @@ keybinds = key = 'Esc' else key = '' - if e.altKey then key = 'alt+' + key - if e.ctrlKey then key = 'ctrl+' + key + if key + if e.altKey then key = 'alt+' + key + if e.ctrlKey then key = 'ctrl+' + key key img: (thread, all) ->