aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2020-04-22 11:59:23 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2020-04-22 11:59:23 +0200
commitf138f507a04da117f92ee6fc85a9e88b442b432f (patch)
treede9339bf9a261a528ce70dc289f41c0fb34ccdd3 /js
parentd8675a9759f55b085bfc8e81ef6d1ec3b705b04b (diff)
downloadfosdem-2021-minimalism-presentation-f138f507a04da117f92ee6fc85a9e88b442b432f.tar
fosdem-2021-minimalism-presentation-f138f507a04da117f92ee6fc85a9e88b442b432f.tar.gz
fix contenteditable check #2650
Diffstat (limited to 'js')
-rw-r--r--js/controllers/keyboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/keyboard.js b/js/controllers/keyboard.js
index 6ffc446..2af435d 100644
--- a/js/controllers/keyboard.js
+++ b/js/controllers/keyboard.js
@@ -160,7 +160,7 @@ export default class Keyboard {
this.Reveal.onUserInput( event );
// Is there a focused element that could be using the keyboard?
- let activeElementIsCE = document.activeElement && document.activeElement.contentEditable !== 'inherit';
+ let activeElementIsCE = document.activeElement && document.activeElement.isContentEditable === true;
let activeElementIsInput = document.activeElement && document.activeElement.tagName && /input|textarea/i.test( document.activeElement.tagName );
let activeElementIsNotes = document.activeElement && document.activeElement.className && /speaker-notes/i.test( document.activeElement.className);