From f109440e9691e269f78d6d12fd8dab77915adf6b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 26 Dec 2014 02:15:01 -0800 Subject: [PATCH] Fix gallery enabling keybinds when they are disabled. --- src/Images/Gallery.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 2e25c3290..6f836b561 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -75,7 +75,7 @@ Gallery = nodes.menu.addEntry entry $.on d, 'keydown', cb.keybinds - $.off d, 'keydown', Keybinds.keydown + $.off d, 'keydown', Keybinds.keydown if Conf['Keybinds'] for file in $$ '.post .file' when !$ '.fileDeletedRes, .fileDeleted', file post = Get.postFromNode file Gallery.generateThumb post @@ -276,7 +276,7 @@ Gallery = doc.style.overflow = '' $.off d, 'keydown', Gallery.cb.keybinds - $.on d, 'keydown', Keybinds.keydown + $.on d, 'keydown', Keybinds.keydown if Conf['Keybinds'] clearTimeout Gallery.timeoutID setFitness: ->