fix Esc keybind

This commit is contained in:
James Campos 2011-06-15 14:31:58 -07:00
parent c9542f1790
commit bb844ce712
2 changed files with 4 additions and 4 deletions

View File

@ -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':

View File

@ -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'