From 2f58049f658e97fccf7f2f07807be83f3e9e41ba Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 13 Jun 2011 17:42:18 -0700 Subject: [PATCH] hotykey: Esc: rm options --- 4chan_x.user.js | 5 +++++ script.coffee | 2 ++ 2 files changed, 7 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 15339b375..a95fecb43 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -745,6 +745,11 @@ var thread; thread = nav.getThread(); switch (keybinds.key) { + case '': + if ($('#options')) { + return options.rm(); + } + break; case '0': return window.location = "/" + g.BOARD + "/0#0"; case 'I': diff --git a/script.coffee b/script.coffee index 92a359599..d630bc8c8 100644 --- a/script.coffee +++ b/script.coffee @@ -539,6 +539,8 @@ keybinds = normal: (e) -> thread = nav.getThread() switch keybinds.key + when '' + options.rm() if $ '#options' when '0' window.location = "/#{g.BOARD}/0#0" when 'I'