diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-05-07 23:54:32 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-05-08 00:00:32 +0200 |
commit | d901d8b641c88f9f22b0479d4b3326b2ed06e958 (patch) | |
tree | 5e43ce0b923368457215651b2a1eb68921e275a2 /src/ui.cc | |
parent | 1e5da933a4ef2c5de8ca711215918e9f3ff9df3e (diff) |
Make Ctrl+C copy selection into clipboard
Follows the behavior of so many other programs by copying the current
text selection into the clipboard with Ctrl+C. Selecting text continues
to copy it into the primary selection.
Fixes: https://github.com/dillo-browser/dillo/issues/228
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2,7 +2,7 @@ * File: ui.cc * * Copyright (C) 2005-2007 Jorge Arellano Cid <jcid@dillo.org> - * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2024-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 @@ -742,6 +742,9 @@ int UI::handle(int event) } else if (cmd == KEYS_FORWARD) { a_UIcmd_forw(a_UIcmd_get_bw_by_widget(this)); ret = 1; + } else if (cmd == KEYS_COPY) { + a_UIcmd_copy(a_UIcmd_get_bw_by_widget(this)); + ret = 1; } else if (cmd == KEYS_ZOOM_IN) { a_UIcmd_zoom_in(a_UIcmd_get_bw_by_widget(this)); ret = 1; |