cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

Feature - First Focus

Open prafullmaru opened this issue 1 year ago • 10 comments

When user visits tool, text box to paste link should get auto focus Today when we visit tool, by default none of the control is active, making feel like on click of any button application will become active.

Set text box with auto focus after first render a clear and concise description of any alternative solutions or features you've considered.

Below is comparision Comparision

prafullmaru avatar Jun 06 '24 19:06 prafullmaru

you can click control on your keyboard to focus it for now if you don't want to use your mouse

ihatespawn avatar Jun 07 '24 09:06 ihatespawn

cobalt already automatically focuses the input field when you press ctrl/cmd, what exactly do you want to be done differently?

wukko avatar Jun 07 '24 11:06 wukko

cobalt already automatically focuses the input field when you press ctrl/cmd, what exactly do you want to be done differently?

this person wants the input field to automatically focus when you visit the page

ihatespawn avatar Jun 07 '24 13:06 ihatespawn

automatically focus when you visit the page

why? what's the point if it gets focused once you press ctrl/cmd to paste the link?

wukko avatar Jun 07 '24 13:06 wukko

why? what's the point if it gets focused once you press ctrl/cmd to paste the link?

idk dont ask me, ask @prafullmaru

ihatespawn avatar Jun 07 '24 20:06 ihatespawn

@wukko - In ideal, first action on site for me will be paste link. If textbox will not be focused, in that case user will have to bring textbox to active state and then paste it(when using keyboard and not UI button). So if we will have textbox focused, it will reduce one unnecessary click in textbox. Considering this as better in terms of UX.

prafullmaru avatar Jun 13 '24 16:06 prafullmaru

You can just paste the link the moment you access cobalt

lostdusty avatar Jun 13 '24 20:06 lostdusty

@wukko - In ideal, first action on site for me will be paste link. If textbox will not be focused, in that case user will have to bring textbox to active state and then paste it(when using keyboard and not UI button). So if we will have textbox focused, it will reduce one unnecessary click in textbox. Considering this as better in terms of UX.

IT WILL BE ACTIVE when you CLICK CTRL ON YOUR KEYBOARD AND YIOU PASTE USING CTRL +V!!!@!@!

ihatespawn avatar Jun 14 '24 08:06 ihatespawn

I see, hitting Ctrl brings focus. Just give thought from perceptive of user who don't know. Ideal case - Just hitting Ctrl should bring shortcut options and should not perform any action itself.

If agree, we have changes in PR, else we can close this issue.

prafullmaru avatar Jun 17 '24 17:06 prafullmaru

Just hitting Ctrl should bring shortcut options

It's made to make it easy to paste, not to show shortcut options, for it could be Ctrl + / but never Ctrl.

ihatespawn avatar Jun 17 '24 21:06 ihatespawn