1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-07-28 10:20:36 +02:00

open the active slide from the overview screen on enter key event

This commit is contained in:
tobi-or-not-tobi
2025-03-25 20:55:36 +01:00
parent 722b14b89f
commit 9612f7bde0
5 changed files with 10 additions and 4 deletions

View File

@@ -398,6 +398,12 @@ export default class Keyboard {
event.preventDefault && event.preventDefault();
}
// Enter to exit overview mode
else if (keyCode === 13 && this.Reveal.overview.isActive()) {
this.Reveal.overview.deactivate();
event.preventDefault && event.preventDefault();
}
// If auto-sliding is enabled we need to cue up
// another timeout