aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 1943e15..d48dd29 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1,5 +1,5 @@
/*!
- * reveal.js 2.0 r22
+ * reveal.js 2.0 r23
* http://lab.hakim.se/reveal-js
* MIT licensed
*
@@ -340,12 +340,9 @@ var Reveal = (function(){
* @param {Object} event
*/
function onDocumentKeyDown( event ) {
- // FFT: Use document.querySelector( ':focus' ) === null
- // instead of checking contentEditable?
-
// Disregard the event if the target is editable or a
// modifier is present
- if ( event.target.contentEditable != 'inherit' || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
+ if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
var triggered = false;