add shift+space support for keyboard

This commit is contained in:
srcn 2015-08-17 15:19:30 +03:00
parent b1d7aa0e64
commit f200bea4cc

View File

@ -80,6 +80,12 @@ function bindKeyboardHandler(element, i) {
deltaY = 90; deltaY = 90;
break; break;
case 32: // space bar case 32: // space bar
if (e.shiftKey) {
deltaY = 90;
} else {
deltaY = -90;
}
break;
case 34: // page down case 34: // page down
deltaY = -90; deltaY = -90;
break; break;