You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Such as Reddit.
Although Reddit does have an <input> element on its search form, it uses the <reddit-search-large> element for the actual active element.
So when I type some search keywords on the search form on Reddit, Shortkeys handle every single keystroke as "it could be assigned shortcut keys", even if all the "Active while in inputs" switches are off. And usually, I end up with a variety of unintended functions launched at once.
Maybe you can use document.activeElement.isContentEditable === true for a practical "Active while in inputs" condition.
Although on Reddit, while input caret is on the search form, document.activeElement is <reddit-search-large> and it is NOT contentEditable.
The text was updated successfully, but these errors were encountered:
Such as Reddit.
Although Reddit does have an
<input>
element on its search form, it uses the<reddit-search-large>
element for the actual active element.So when I type some search keywords on the search form on Reddit, Shortkeys handle every single keystroke as "it could be assigned shortcut keys", even if all the "Active while in inputs" switches are off. And usually, I end up with a variety of unintended functions launched at once.
Maybe you can use
document.activeElement.isContentEditable === true
for a practical "Active while in inputs" condition.Although on Reddit, while input caret is on the search form, document.activeElement is
<reddit-search-large>
and it is NOT contentEditable.The text was updated successfully, but these errors were encountered: