fix Esc keybind
This commit is contained in:
parent
c9542f1790
commit
bb844ce712
@ -742,12 +742,12 @@
|
||||
}
|
||||
},
|
||||
normal: function(e) {
|
||||
var thread;
|
||||
var o, thread;
|
||||
thread = nav.getThread();
|
||||
switch (keybinds.key) {
|
||||
case '<Esc>':
|
||||
if ($('#options')) {
|
||||
return options.rm();
|
||||
if (o = $('#overlay')) {
|
||||
return $.rm(o);
|
||||
}
|
||||
break;
|
||||
case '0':
|
||||
|
||||
@ -541,7 +541,7 @@ keybinds =
|
||||
thread = nav.getThread()
|
||||
switch keybinds.key
|
||||
when '<Esc>'
|
||||
options.rm() if $ '#options'
|
||||
$.rm o if o = $ '#overlay'
|
||||
when '0'
|
||||
window.location = "/#{g.BOARD}/0#0"
|
||||
when 'I'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user