DEV Community

Cover image for Detecting Select All on the Web

Detecting Select All on the Web

Sam Thorogood on June 04, 2019

On the web, hitting Cmd/Ctrl-A (or triggering "Select All" another way) has two distinct modes of operation. If your focus is inside a <textare...
Collapse
 
philnash profile image
Phil Nash

This is cool! Could be something to propose to the dev.to codebase (since you specifically call out having a large editor πŸ˜‰).

Collapse
 
nuxodin profile image
Tobias Buschor

Unfortunately it does not work in Firefox. :(

Collapse
 
samthor profile image
Sam Thorogood

I've not had time to test this but I've had another report which was very excited to find out that it does:

Try Emojityperβ€”type some text/emoji, tab-focus to a button, and then try Select All.