aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-01-08 13:49:06 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-01-08 13:49:06 +0100
commit06cdd9b7cd62ffde1f8ebcc91b66ae45944718c7 (patch)
treecc279aab1a8d21011a5cfc4e92684c2dde1b4453 /js
parent4ee6769e0f3a80e8609f5586163d5fb5d4e65eb9 (diff)
downloadperl-software-in-gnu-guix-06cdd9b7cd62ffde1f8ebcc91b66ae45944718c7.tar
perl-software-in-gnu-guix-06cdd9b7cd62ffde1f8ebcc91b66ae45944718c7.tar.gz
include speaker view keyboard shortcut when applicable #1466
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 9302f82..c576c8c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -4684,6 +4684,11 @@
// Programatically triggers a keyboard event
triggerKey: function( keyCode ) {
onDocumentKeyDown( { keyCode: keyCode } );
+ },
+
+ // Registers a new shortcut to include in the help overlay
+ registerKeyboardShortcut: function( key, value ) {
+ keyboardShortcuts[key] = value;
}
};