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