[Spice-commits] tools/spicy.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 7 11:27:27 UTC 2022


 tools/spicy.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9992bdb9213cb35df0c526da18fcbdda7f82f224
Author: Joel Rangsmo <joel at rangsmo.se>
Date:   Wed Jul 6 22:17:48 2022 +0000

    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.

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 */


More information about the Spice-commits mailing list