diff options
author | Matthew Lein | 2011-12-21 15:11:10 -0500 |
---|---|---|
committer | Matthew Lein | 2011-12-21 15:11:10 -0500 |
commit | 853efe504356b7607330cb7e81a2a22ec1ed5a78 (patch) | |
tree | 428f333226fe983f1e95c31c4b286a670629cde8 /js | |
parent | 59c9b3c5968a167acb2814aeff32eb208df23e66 (diff) |
for contenteditable elements, don't let arrow keys work
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 335e619..ce8e90a 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -135,7 +135,7 @@ var Reveal = (function(){ */ function onDocumentKeyDown( event ) { - if( event.keyCode >= 37 && event.keyCode <= 40 ) { + if( event.keyCode >= 37 && event.keyCode <= 40 && event.target.contentEditable === 'inherit' ) { switch( event.keyCode ) { case 37: navigateLeft(); break; // left |