-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for content editable? #2650
Comments
hakimel
added a commit
that referenced
this issue
Apr 22, 2020
Thanks for reporting. Didn't know The fix will be available when reveal.js 4.0 is released. |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code which checks to see if keyboard events should be discarded includes checking
document.activeElement.contentEditable !== 'inherit'
atreveal.js/js/reveal.js
Line 5233 in 00b0ace
I'm confused about this check, as
contentEditable
can return"true"
,"false"
or"inherit"
(https://html.spec.whatwg.org/multipage/interaction.html#attr-contenteditable) so input is discarded whencontentEditable
is"false"
.Perhaps the test should be
document.activeElement.contentEditable === 'true'
ordocument.activeElement.isContentEditable
?This came up in servo/servo#12776.
The text was updated successfully, but these errors were encountered: