aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkui.cc
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-05-20 23:34:25 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-05-20 23:34:25 +0200
commitbd0c912a80a72f2c9a1701e510e53d3e2771247c (patch)
tree1c527d0ec065ca4601d979d6750f7b226d7bb05a /dw/fltkui.cc
parente8be369aa93f535519d6f63db324571286a8996b (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 'dw/fltkui.cc')
-rw-r--r--dw/fltkui.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index db7c94e2..11fbb883 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2025 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -174,8 +175,8 @@ int CustInput2::handle(int e)
return 0;
}
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());