skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.19k stars 62 forks source link

Input field keybindings: Ctrl+A to select all text; also add keys for jump to beginning/end #376

Open balazsbotond opened 2 years ago

balazsbotond commented 2 years ago

I use Ctrl+A often to select text in input boxes. It doesn't seem to work in Lagrange in either the address bar or the pop-up input windows.

skyjake commented 2 years ago

Shift+Ctrl+A should work for this in all input fields. The Ctrl+A and Ctrl+E keys currently do an Emacs-style home/end cursor move.

I'll probably add keybindings for the input field keys: jump to beginning, jump to end, and select all, and set the default of select all to Ctrl+A since that seems like a GUI convention at least on Linux.

skyjake commented 2 years ago

Version 1.9 changed the hardcoded input keys so Ctrl+A selects all on PC platforms. Still, wouldn't hurt to have configurable keybindings for the input fields.