calebmer / connect

10 stars 2 forks source link

Focus "text input" when selecting a Conversation #67

Open brenthaertlein opened 5 years ago

brenthaertlein commented 5 years ago

When selecting a Conversation, the user must manually interact with the input field ("Send a message") in order to start typing.

It would be preferable if the text input was "auto focused", allowing the user to start typing immediately after selecting a Conversation to "participate" in.

calebmer commented 5 years ago

Here’s the problem with this: when you select a conversation, instead you might want the conversation itself focused which allows you to scroll up and down with arrow keys. If you’re a keyboard user you’d want to tab among the links at the top of the post instead of jumping all the way down to the conversation input.

I care a lot about making this app work well for power keyboard users. Maybe the middle-ground here is a keyboard shortcut to activate the comment input?

Domthegrom commented 5 years ago

Possibly make the first tab index of the new focus be the comment input. Take jumping into a new issue on Github. This is a threaded post and it doesn't auto-focus the input.

calebmer commented 5 years ago

Maybe if you’re returning to a post after reading everything we can jump you to the bottom of the post and focus the input. If you’re seeing a post for the first time it’s more likely that you’ll want to read it top to bottom and arrow-keys-to-scroll will be the better default.