first/last slide shortcut now uses shift modified, cmd conflicted with browser back/fwd
parent
25e521a16c
commit
99c3498253
|
@ -1453,8 +1453,8 @@
|
||||||
keyboardShortcuts['↓ , J'] = 'Navigate down';
|
keyboardShortcuts['↓ , J'] = 'Navigate down';
|
||||||
}
|
}
|
||||||
|
|
||||||
keyboardShortcuts['Home , ⌘/CTRL ←'] = 'First slide';
|
keyboardShortcuts['Home , Shift ←'] = 'First slide';
|
||||||
keyboardShortcuts['End , ⌘/CTRL →'] = 'Last slide';
|
keyboardShortcuts['End , Shift →'] = 'Last slide';
|
||||||
keyboardShortcuts['B , .'] = 'Pause';
|
keyboardShortcuts['B , .'] = 'Pause';
|
||||||
keyboardShortcuts['F'] = 'Fullscreen';
|
keyboardShortcuts['F'] = 'Fullscreen';
|
||||||
keyboardShortcuts['ESC, O'] = 'Slide overview';
|
keyboardShortcuts['ESC, O'] = 'Slide overview';
|
||||||
|
@ -5192,8 +5192,8 @@
|
||||||
|
|
||||||
// Whitelist specific modified + keycode combinations
|
// Whitelist specific modified + keycode combinations
|
||||||
var prevSlideShortcut = event.shiftKey && event.keyCode === 32;
|
var prevSlideShortcut = event.shiftKey && event.keyCode === 32;
|
||||||
var firstSlideShortcut = ( event.metaKey || event.ctrlKey ) && keyCode === 37;
|
var firstSlideShortcut = event.shiftKey && keyCode === 37;
|
||||||
var lastSlideShortcut = ( event.metaKey || event.ctrlKey ) && keyCode === 39;
|
var lastSlideShortcut = event.shiftKey && keyCode === 39;
|
||||||
|
|
||||||
// Prevent all other events when a modifier is pressed
|
// Prevent all other events when a modifier is pressed
|
||||||
var unusedModifier = !prevSlideShortcut && !firstSlideShortcut && !lastSlideShortcut &&
|
var unusedModifier = !prevSlideShortcut && !firstSlideShortcut && !lastSlideShortcut &&
|
||||||
|
|
Loading…
Reference in New Issue