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) {
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':

View File

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