hotykey: Esc: rm options
This commit is contained in:
parent
bd2f0d66b7
commit
2f58049f65
@ -745,6 +745,11 @@
|
|||||||
var thread;
|
var thread;
|
||||||
thread = nav.getThread();
|
thread = nav.getThread();
|
||||||
switch (keybinds.key) {
|
switch (keybinds.key) {
|
||||||
|
case '<Esc>':
|
||||||
|
if ($('#options')) {
|
||||||
|
return options.rm();
|
||||||
|
}
|
||||||
|
break;
|
||||||
case '0':
|
case '0':
|
||||||
return window.location = "/" + g.BOARD + "/0#0";
|
return window.location = "/" + g.BOARD + "/0#0";
|
||||||
case 'I':
|
case 'I':
|
||||||
|
|||||||
@ -539,6 +539,8 @@ keybinds =
|
|||||||
normal: (e) ->
|
normal: (e) ->
|
||||||
thread = nav.getThread()
|
thread = nav.getThread()
|
||||||
switch keybinds.key
|
switch keybinds.key
|
||||||
|
when '<Esc>'
|
||||||
|
options.rm() if $ '#options'
|
||||||
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