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
There's a subtle, rather significant, UX difference between the two.
The event should fire on keydown and not on the keyup event.
E.g.,
if(document.activeElementinstanceofHTMLInputElement||document.activeElementinstanceofHTMLTextAreaElement){// Exit early if an inputtable element is already focused.return;}if((e.metaKey&&e.key==='k')||e.key==='/'){e.preventDefault();// Fire matching event}
The text was updated successfully, but these errors were encountered:
There's a subtle, rather significant, UX difference between the two.
The event should fire on keydown and not on the keyup event.
E.g.,
The text was updated successfully, but these errors were encountered: