From f48c000aa364302bb692852fca6dee4d8dc2286f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 4 Aug 2015 23:43:57 +0200 Subject: Improve colorbox navigation and document it - Make buttons fixed so you don't have to move the mouse - Support h/l for vimperator users - Document mappings so users actually know about them Signed-off-by: Florian Pritz --- public_html/data/js/vendor/jquery.colorbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public_html/data/js/vendor') diff --git a/public_html/data/js/vendor/jquery.colorbox.js b/public_html/data/js/vendor/jquery.colorbox.js index f9b676670..4c5025370 100644 --- a/public_html/data/js/vendor/jquery.colorbox.js +++ b/public_html/data/js/vendor/jquery.colorbox.js @@ -526,10 +526,10 @@ publicMethod.close(); } if (open && settings.get('arrowKey') && $related[1] && !e.altKey) { - if (key === 37) { + if (key === 37 || key == 72) { e.preventDefault(); $prev.click(); - } else if (key === 39) { + } else if (key === 39 || key === 76) { e.preventDefault(); $next.click(); } -- cgit v1.2.3-24-g4f1b