summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rangsmo <joel@rangsmo.se>2022-07-06 22:17:48 +0000
committerJoel Rangsmo <joel@rangsmo.se>2022-07-06 22:17:48 +0000
commit9992bdb9213cb35df0c526da18fcbdda7f82f224 (patch)
treedfccb327576e116b29f49b2626944caf95f4a9ab
parent74e673d7c3d9cd281d85c691fbc520107066da01 (diff)
spicy: Add keyboard shortcuts for copy/paste sync
This simple change adds keyboard shortcuts for manual synchronization of copy/paste buffers. These come in handy when automatic clipboard sharing is disabled, which may be desirable to prevent a semi-trusted server from reading sensitive data populated by password managers and similar. Shift+F5/F6 ain't the most comfortable shortcuts, but it sticks with the current theme.
-rw-r--r--tools/spicy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/spicy.c b/tools/spicy.c
index 5add733..d35fe8c 100644
--- a/tools/spicy.c
+++ b/tools/spicy.c
@@ -735,13 +735,13 @@ static const GtkActionEntry entries[] = {
.stock_id = "edit-copy",
.label = "_Copy to guest",
.callback = G_CALLBACK(menu_cb_copy),
- .accelerator = "", /* none (disable default "<control>C") */
+ .accelerator = "<shift>F5",
},{
.name = "PasteFromGuest",
.stock_id = "edit-paste",
.label = "_Paste from guest",
.callback = G_CALLBACK(menu_cb_paste),
- .accelerator = "", /* none (disable default "<control>V") */
+ .accelerator = "<shift>F6",
},{
/* View menu */