[evolution-patches] shift TAB workaround



Attached patch implements workaround about Shift-TAB problem (see
ChangeLog)

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.1792
diff -u -p -r1.1792 ChangeLog
--- ChangeLog	8 May 2003 07:18:38 -0000	1.1792
+++ ChangeLog	8 May 2003 15:45:03 -0000
@@ -1,3 +1,11 @@
+2003-05-08  Radek Doulik  <rodo ximian com>
+
+	* gtkhtml.c (key_press_event): workaround about Shift-TAB
+	problem. gtk activates TAB binding even for Shift-TAB. we don't
+	call key_press_handler of parent class for Shift-TAB now to avoid
+	TAB binding to be activated. I have sent mail to Owen meanwhile
+	asking him to help with it on gtk side.
+
 2003-05-06  Radek Doulik  <rodo ximian com>
 
 	* gtkhtml.c (drag_data_received): call move_before_paste only
Index: gtkhtml.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.508
diff -u -p -r1.508 gtkhtml.c
--- gtkhtml.c	8 May 2003 07:18:38 -0000	1.508
+++ gtkhtml.c	8 May 2003 15:45:04 -0000
@@ -817,7 +817,7 @@ key_press_event (GtkWidget *widget, GdkE
 	if (html_class->use_emacs_bindings && html_class->emacs_bindings && !html->binding_handled)
 		gtk_binding_set_activate (html_class->emacs_bindings, event->keyval, event->state, GTK_OBJECT (widget));
 
-	if (!html->binding_handled)
+	if (!html->binding_handled && !(event->state == GDK_SHIFT_MASK && (event->keyval == GDK_Tab || event->keyval == GDK_ISO_Left_Tab)))
 		GTK_WIDGET_CLASS (parent_class)->key_press_event (widget, event);
 	
 	retval = html->binding_handled;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]