forked from impress/impress.js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go to prev() step when shift+tab is pressed.
The tab key is used for navigation to override the browser default behavior: navigating to next link, button or other widget, which would cause the browser to scroll to that widget being visible in the window. However, since some time ago, shift+tab (and shift+anything) would be ignored. Thus, if user presses shift+tab, the unwanted default behavior still happens. (...just in the opposite direction.) This patch adds shift+tab as a special case, and ties it to impress().prev(). Anything else with shift pressed will still be ignored. References: impress#116 impress#550
- Loading branch information
1 parent
b702481
commit 818f16b
Showing
2 changed files
with
61 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters