hotykey: Esc: rm options

This commit is contained in:
James Campos 2011-06-13 17:42:18 -07:00
parent bd2f0d66b7
commit 2f58049f65
2 changed files with 7 additions and 0 deletions

View File

@ -745,6 +745,11 @@
var thread;
thread = nav.getThread();
switch (keybinds.key) {
case '<Esc>':
if ($('#options')) {
return options.rm();
}
break;
case '0':
return window.location = "/" + g.BOARD + "/0#0";
case 'I':

View File

@ -539,6 +539,8 @@ keybinds =
normal: (e) ->
thread = nav.getThread()
switch keybinds.key
when '<Esc>'
options.rm() if $ '#options'
when '0'
window.location = "/#{g.BOARD}/0#0"
when 'I'