for contenteditable elements, don't let arrow keys work
This commit is contained in:
parent
59c9b3c596
commit
853efe5043
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue