summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-02-16 14:48:17 -0500
committerTingPing <tingping@tingping.se>2014-02-16 14:48:17 -0500
commit8f6a5960576a20bd6f6be731ad8d3dba6348927a (patch)
tree6e2e08acbce75abf55eb4cc49b020d78d460eeff /src
parent85aff53a88628004b164dff2c7ed8423ba4f4e16 (diff)
Properly handle shift tab in keyboard shortcuts
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/fkeys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c
index 36502325..016a1178 100644
--- a/src/fe-gtk/fkeys.c
+++ b/src/fe-gtk/fkeys.c
@@ -398,6 +398,10 @@ key_dialog_set_key (GtkCellRendererAccel *accel, gchar *pathstr, guint accel_key
 	GtkTreeIter iter;
 	gchar *label_name, *accel_name;
 
+	/* Shift tab requires an exception, hopefully that list ends here.. */
+	if (accel_key == GDK_KEY_Tab && accel_mods & GDK_SHIFT_MASK)
+		accel_key = GDK_KEY_ISO_Left_Tab;
+
 	label_name = gtk_accelerator_get_label (accel_key, key_modifier_get_valid (accel_mods));
 	accel_name = gtk_accelerator_name (accel_key, key_modifier_get_valid (accel_mods));