Merge pull request #5 from matthewlein/master

contenteditable and arrow keys
This commit is contained in:
Hakim El Hattab 2011-12-21 18:19:36 -08:00
commit 60bf197890

View file

@ -135,7 +135,7 @@ var Reveal = (function(){
*/ */
function onDocumentKeyDown( event ) { function onDocumentKeyDown( event ) {
if( event.keyCode >= 37 && event.keyCode <= 40 ) { if( event.keyCode >= 37 && event.keyCode <= 40 && event.target.contentEditable === 'inherit' ) {
switch( event.keyCode ) { switch( event.keyCode ) {
case 37: navigateLeft(); break; // left case 37: navigateLeft(); break; // left