aboutsummaryrefslogtreecommitdiff
path: root/src/keys.cc
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-05-07 23:54:32 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-05-08 00:00:32 +0200
commitd901d8b641c88f9f22b0479d4b3326b2ed06e958 (patch)
tree5e43ce0b923368457215651b2a1eb68921e275a2 /src/keys.cc
parent1e5da933a4ef2c5de8ca711215918e9f3ff9df3e (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/keys.cc')
-rw-r--r--src/keys.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/keys.cc b/src/keys.cc
index bbbd30bb..2a97a160 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -139,6 +139,7 @@ static const KeyBinding_t default_keys[] = {
{ "right" , KEYS_RIGHT , 0 , FL_Right },
{ "top" , KEYS_TOP , 0 , FL_Home },
{ "bottom" , KEYS_BOTTOM , 0 , FL_End },
+ { "copy" , KEYS_COPY , FL_CTRL , 'c' },
{ "zoom-in" , KEYS_ZOOM_IN , FL_CTRL , '+' },
{ "zoom-in" , KEYS_ZOOM_IN , FL_CTRL , '=' /* US + */ },
{ "zoom-out" , KEYS_ZOOM_OUT , FL_CTRL , '-' },