for contenteditable elements, don't let arrow keys work
authorMatthew Lein <matthewlein@hotmail.com>
Wed, 21 Dec 2011 20:11:10 +0000 (15:11 -0500)
committerMatthew Lein <matthewlein@hotmail.com>
Wed, 21 Dec 2011 20:11:10 +0000 (15:11 -0500)
js/reveal.js

index 335e6198c148ab2a2640659da654786364f83a98..ce8e90ae801f53fa3e9430b46b3f3ca5e9f95b04 100644 (file)
@@ -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