[virt-tools-list] [PATCH 2/2] Add ability to use 'End' key in hotkeys

Jonathon Jongsma jjongsma at redhat.com
Fri Aug 30 21:21:29 UTC 2013


ctrl_key_to_gtk_key() capitalizes all key names not explicitly specified in the
translation table.  So 'end' becomes 'END', which is not a valid key name
according to GTK+.  Un-comment out the 'end' item from the table and set it to
the properly capitalized key name ("End").

This allows users to specify e.g. "ctrl+alt+end" as a hotkey for
sending the secure attention sequence.
---
 src/virt-viewer-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virt-viewer-util.c b/src/virt-viewer-util.c
index 344bd13..e4db928 100644
--- a/src/virt-viewer-util.c
+++ b/src/virt-viewer-util.c
@@ -366,7 +366,7 @@ ctrl_key_to_gtk_key(const gchar *key)
         { "pagedown", "Page_Down" },
 
         /* { "home", "home" }, */
-        /* { "end", "end" }, */
+        { "end", "End" },
         /* { "space", "space" }, */
 
         { "enter", "Return" },
-- 
1.8.3.1




More information about the virt-tools-list mailing list