From bd0c912a80a72f2c9a1701e510e53d3e2771247c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 20 May 2025 23:34:25 +0200 Subject: 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 --- dw/fltkui.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dw/fltkui.cc') 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 + * Copyright 2025 Rodrigo Arias Mallo * * 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()); -- cgit v1.2.3