projects
/
reveal.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59c9b3c
)
for contenteditable elements, don't let arrow keys work
author
Matthew Lein
<matthewlein@hotmail.com>
Wed, 21 Dec 2011 20:11:10 +0000
(15:11 -0500)
committer
Matthew Lein
<matthewlein@hotmail.com>
Wed, 21 Dec 2011 20:11:10 +0000
(15:11 -0500)
js/reveal.js
patch
|
blob
|
history
diff --git
a/js/reveal.js
b/js/reveal.js
index 335e6198c148ab2a2640659da654786364f83a98..ce8e90ae801f53fa3e9430b46b3f3ca5e9f95b04 100644
(file)
--- 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