Commit 60bf1978 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

Merge pull request #5 from matthewlein/master

contenteditable and arrow keys
parents 59c9b3c5 853efe50
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment