aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-26 11:35:55 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-26 11:36:03 +0200
commit1e5ca748a49b35ec698fc73d0420bb63534b9ae7 (patch)
tree5e82781030c5659d83b44880f2e34785f2be9c75 /js
parent54ca9edeed077c4f7e564d0fa26c086af28a02ee (diff)
downloadperl-software-in-gnu-guix-1e5ca748a49b35ec698fc73d0420bb63534b9ae7.tar
perl-software-in-gnu-guix-1e5ca748a49b35ec698fc73d0420bb63534b9ae7.tar.gz
enable reveal.js keyboard shortcuts anywhere in notes window
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 7a032d0..d81a19d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3702,6 +3702,11 @@ var Reveal = (function(){
if( 'addEventListener' in window ) {
( dom.wrapper || document.querySelector( '.reveal' ) ).removeEventListener( type, listener, useCapture );
}
+ },
+
+ // Programatically triggers a keyboard event
+ triggerKey: function( keyCode ) {
+ onDocumentKeyDown( { keyCode: keyCode } );
}
};