Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

for contenteditable elements, don't let arrow keys work

  • Loading branch information...
commit 853efe504356b7607330cb7e81a2a22ec1ed5a78 1 parent 59c9b3c
@matthewlein matthewlein authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.