From 853efe504356b7607330cb7e81a2a22ec1ed5a78 Mon Sep 17 00:00:00 2001 From: Matthew Lein Date: Wed, 21 Dec 2011 15:11:10 -0500 Subject: [PATCH] for contenteditable elements, don't let arrow keys work --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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