Browse Source

for contenteditable elements, don't let arrow keys work

embed
Matthew Lein 13 years ago
parent
commit
853efe5043
  1. 2
      js/reveal.js

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

Loading…
Cancel
Save