From 109bcebf3f641909a0c9dfffa85033e0abbbfaf2 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 4 Jul 2014 20:51:44 -0700 Subject: [PATCH] controls need not prevent the keybinds from working --- src/Images/Gallery.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index c58d0d88a..b0fe69ba6 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -112,7 +112,7 @@ Gallery = when 'Right' Gallery.cb.next when 'Enter' - Gallery.cb.advance + Gallery.cb.advanceKey when 'Left', '' Gallery.cb.prev @@ -198,9 +198,9 @@ Gallery = next: -> Gallery.cb.open.call Gallery.images[+Gallery.nodes.current.dataset.id + 1] toggle: -> (if Gallery.nodes then Gallery.cb.close else Gallery.build)() blank: (e) -> Gallery.cb.close() if e.target is @ + advance: -> Gallery.cb.advanceKey() unless Gallery.nodes.current.controls - advance: -> - if Gallery.nodes.current.controls then return + advanceKey: -> if Gallery.nodes.current.paused then return Gallery.nodes.current.play() Gallery.cb.next()