Skip to content

Commit

Permalink
Merge pull request #5 from matthewlein/master
Browse files Browse the repository at this point in the history
contenteditable and arrow keys
  • Loading branch information
hakimel committed Dec 22, 2011
2 parents 59c9b3c + 853efe5 commit 60bf197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60bf197

Please sign in to comment.