From f138f507a04da117f92ee6fc85a9e88b442b432f Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 22 Apr 2020 11:59:23 +0200 Subject: [PATCH] fix contenteditable check #2650 --- js/controllers/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/controllers/keyboard.js b/js/controllers/keyboard.js index 6ffc446d..2af435df 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);