Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CTRL+A select text in the current field #23

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

kuchikuu
Copy link

Change the default behavior of CTRL+A from moving cursor to the beginning of the line, to selecting the whole text in the current field.
This is more intuitive for casual users and goes in pair with CTLR+X/C/V shortcuts.

Modified files:
dw/fltkui.cc <- shortcut inside the webpage
src/dialog.cc <- shortcut in a dialog (not tested)
src/fidnbar.cc <- shortcut in Search field
src/ui.cc <- shortcut in address bar

Change the default behavior of CTRL+A from moving cursor to the
beginning of the line, to selecting the whole text in the current.
This is more intuivite for casual users and goes in pair with
CTLR+X/C/V shortcuts.

Modified files:
dw/fltkui.cc <- shortcut inside the webpage
src/dialog.cc <- shortcut in a dialog (not tested)
src/fidnbar.cc <- shortcut in Search field
src/ui.cc <- shortcut in address bar
@kuchikuu
Copy link
Author

kuchikuu commented Jan 10, 2024

Something that I wanted for a long time.

Edit: Come to think about it...
To select all text in address bar, you have to press CTRL+L (again)
to select all text in Find/Search bar, you have to press CTRL+F again

So I guess these two already had "select all" functionality.
But there's no way (at least that I know of) to select your text inside a website (for example in input field).

Well, up to you. Making CTRL+A select it as well, makes it more intuitive (I think).
Moving to the beginning of the line can also be achieved by CTRL+LeftArrow.

Edit2:
Ok, I don't know how to feel about this pull request anymore
It looks like there are ways to select text in a field inside a webpage.
We can press CTRL+SHIFT+Home after being at the end of the input field to select the whole text.

Well, I would like to be able to select everything in a field with a quick CTRL+A, but it's up to You to decide whether you want to merge it or not.

@crossbowerbt crossbowerbt changed the base branch from main to dev February 3, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant