diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-05-20 23:34:25 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-05-20 23:34:25 +0200 |
commit | bd0c912a80a72f2c9a1701e510e53d3e2771247c (patch) | |
tree | 1c527d0ec065ca4601d979d6750f7b226d7bb05a /src | |
parent | e8be369aa93f535519d6f63db324571286a8996b (diff) |
Make Ctrl+A select input text
The Emacs shortcut was overriding the FLTK behavior of selecting all
input text.
Fixes: https://github.com/dillo-browser/dillo/issues/400
Diffstat (limited to 'src')
-rw-r--r-- | src/ui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -127,8 +127,8 @@ int CustInput::handle(int e) return 0; } } else if (modifier == FL_CTRL) { - if (k == 'a' || k == 'e') { - position(k == 'a' ? 0 : size()); + if (k == 'e') { + position(size()); return 1; } else if (k == 'k') { cut(position(), size()); @@ -136,7 +136,7 @@ int CustInput::handle(int e) } else if (k == 'd') { cut(position(), position()+1); return 1; - } else if (k == 'l') { + } else if (k == 'a' || k == 'l') { // Make text selected when already focused. position(size(), 0); return 1; |