summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHakim El Hattab2019-05-27 08:45:00 +0200
committerHakim El Hattab2019-05-27 08:45:00 +0200
commit99c349825392e74aa15104367d73c248327eb7ba (patch)
tree13d8580c64a3b921447a870c0327a7eb58662734
parent25e521a16cd1a35230fcd68cc74db423f2737ebb (diff)
first/last slide shortcut now uses shift modified, cmd conflicted with browser back/fwd
-rw-r--r--js/reveal.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 4aa50aa..0065e9b 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1453,8 +1453,8 @@
keyboardShortcuts['↓ , J'] = 'Navigate down';
}
- keyboardShortcuts['Home , ⌘/CTRL ←'] = 'First slide';
- keyboardShortcuts['End , ⌘/CTRL →'] = 'Last slide';
+ keyboardShortcuts['Home , Shift ←'] = 'First slide';
+ keyboardShortcuts['End , Shift →'] = 'Last slide';
keyboardShortcuts['B , .'] = 'Pause';
keyboardShortcuts['F'] = 'Fullscreen';
keyboardShortcuts['ESC, O'] = 'Slide overview';
@@ -5192,8 +5192,8 @@
// Whitelist specific modified + keycode combinations
var prevSlideShortcut = event.shiftKey && event.keyCode === 32;
- var firstSlideShortcut = ( event.metaKey || event.ctrlKey ) && keyCode === 37;
- var lastSlideShortcut = ( event.metaKey || event.ctrlKey ) && keyCode === 39;
+ var firstSlideShortcut = event.shiftKey && keyCode === 37;
+ var lastSlideShortcut = event.shiftKey && keyCode === 39;
// Prevent all other events when a modifier is pressed
var unusedModifier = !prevSlideShortcut && !firstSlideShortcut && !lastSlideShortcut &&