From: Matthew Lein Date: Wed, 21 Dec 2011 20:11:10 +0000 (-0500) Subject: for contenteditable elements, don't let arrow keys work X-Git-Tag: 1.0.0^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=853efe504356b7607330cb7e81a2a22ec1ed5a78;p=reveal.js.git for contenteditable elements, don't let arrow keys work --- 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