From f200bea4ccd79b22b8a642ccc1f5945ccbadbc6a Mon Sep 17 00:00:00 2001 From: srcn Date: Mon, 17 Aug 2015 15:19:30 +0300 Subject: [PATCH] add shift+space support for keyboard --- src/js/plugin/handler/keyboard.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/plugin/handler/keyboard.js b/src/js/plugin/handler/keyboard.js index 500da1c..b7774da 100644 --- a/src/js/plugin/handler/keyboard.js +++ b/src/js/plugin/handler/keyboard.js @@ -80,6 +80,12 @@ function bindKeyboardHandler(element, i) { deltaY = 90; break; case 32: // space bar + if (e.shiftKey) { + deltaY = 90; + } else { + deltaY = -90; + } + break; case 34: // page down deltaY = -90; break;