Skip to content
Browse files

for contenteditable elements, don't let arrow keys work

  • Loading branch information...
1 parent 59c9b3c commit 853efe504356b7607330cb7e81a2a22ec1ed5a78 @matthewlein matthewlein committed Dec 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/reveal.js
View
2 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

0 comments on commit 853efe5

Please sign in to comment.
Something went wrong with that request. Please try again.