imputnet / cobalt

best way to save what you love
https://cobalt.tools
GNU Affero General Public License v3.0
14.82k stars 1.21k forks source link

Feature - First Focus #546

Closed prafullmaru closed 2 weeks ago

prafullmaru commented 3 months ago

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

ihatespawn commented 3 months ago

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

wukko commented 3 months ago

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

ihatespawn commented 3 months ago

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

wukko commented 3 months ago

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?

ihatespawn commented 3 months ago

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

idk dont ask me, ask @prafullmaru

prafullmaru commented 3 months ago

@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.

lostdusty commented 3 months ago

You can just paste the link the moment you access cobalt

ihatespawn commented 3 months ago

@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!!!@!@!

prafullmaru commented 3 months ago

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.

ihatespawn commented 3 months ago

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.