File netware-keycombo.patch of Package virt-viewer

Index: virt-viewer-0.2.1/src/viewer.c
===================================================================
--- virt-viewer-0.2.1.orig/src/viewer.c
+++ virt-viewer-0.2.1/src/viewer.c
@@ -68,7 +68,7 @@ static const char * const menuNames[LAST
 };
 
 
-#define MAX_KEY_COMBO 3
+#define MAX_KEY_COMBO 4
 struct  keyComboDef {
 	guint keys[MAX_KEY_COMBO];
 	guint nkeys;
@@ -78,7 +78,16 @@ struct  keyComboDef {
 static const struct keyComboDef keyCombos[] = {
         { { GDK_Control_L, GDK_Alt_L, GDK_Delete }, 3, "Ctrl+Alt+_Del"},
         { { GDK_Control_L, GDK_Alt_L, GDK_BackSpace }, 3, "Ctrl+Alt+_Backspace"},
-        { { GDK_Control_R, GDK_Scroll_Lock, GDK_Scroll_Lock }, 3, "Ctrl+Scroll+Scroll"},
+        { { GDK_Control_R, GDK_Scroll_Lock, GDK_Scroll_Lock }, 3, "Ctrl+Scroll+Scr_oll"},
+        { {}, 0, "" },
+        { { GDK_F8 }, 1, "_F8"},
+        { { GDK_F10 }, 1, "F1_0"},
+        { { GDK_Alt_L, GDK_F10 }, 2, "A_lt+F10"},
+        { { GDK_Alt_L, GDK_Tab }, 2, "Alt+_Tab"},
+        { { GDK_Alt_L, GDK_Escape }, 2, "_Alt+Esc"},
+        { { GDK_Control_L, GDK_Escape }, 2, "_Ctrl+Esc"},
+        { { GDK_Control_L, GDK_Alt_L, GDK_Escape }, 3, "Ctrl+Alt+_Esc"},
+        { { GDK_Alt_R, GDK_Shift_R, GDK_Shift_L, GDK_Escape }, 4, "Alt+Shift+Sh_ift+Esc"},
         { {}, 0, "" },
         { { GDK_Control_L, GDK_Alt_L, GDK_F1 }, 3, "Ctrl+Alt+F_1"},
         { { GDK_Control_L, GDK_Alt_L, GDK_F2 }, 3, "Ctrl+Alt+F_2"},
@@ -88,10 +97,10 @@ static const struct keyComboDef keyCombo
         { { GDK_Control_L, GDK_Alt_L, GDK_F6 }, 3, "Ctrl+Alt+F_6"},
         { { GDK_Control_L, GDK_Alt_L, GDK_F7 }, 3, "Ctrl+Alt+F_7"},
         { { GDK_Control_L, GDK_Alt_L, GDK_F8 }, 3, "Ctrl+Alt+F_8"},
-        { { GDK_Control_L, GDK_Alt_L, GDK_F5 }, 3, "Ctrl+Alt+F_9"},
-        { { GDK_Control_L, GDK_Alt_L, GDK_F6 }, 3, "Ctrl+Alt+F1_0"},
-        { { GDK_Control_L, GDK_Alt_L, GDK_F7 }, 3, "Ctrl+Alt+F11"},
-        { { GDK_Control_L, GDK_Alt_L, GDK_F8 }, 3, "Ctrl+Alt+F12"},
+        { { GDK_Control_L, GDK_Alt_L, GDK_F9 }, 3, "Ctrl+Alt+F_9"},
+        { { GDK_Control_L, GDK_Alt_L, GDK_F10 }, 3, "Ct_rl+Alt+F10"},
+        { { GDK_Control_L, GDK_Alt_L, GDK_F11 }, 3, "Ctrl+Alt+F11"},
+        { { GDK_Control_L, GDK_Alt_L, GDK_F12 }, 3, "Ctrl+Alt+F12"},
         { {}, 0, "" },
         { { GDK_Print }, 1, "_PrintScreen"},
 };
openSUSE Build Service is sponsored by