SF.net SVN: geany: [2108] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Dec 18 13:35:51 UTC 2007


Revision: 2108
          http://geany.svn.sourceforge.net/geany/?rev=2108&view=rev
Author:   ntrel
Date:     2007-12-18 05:35:51 -0800 (Tue, 18 Dec 2007)

Log Message:
-----------
Don't flicker menubar when typing Shift-[a-z] in the VTE.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/keybindings.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-12-18 13:16:23 UTC (rev 2107)
+++ trunk/ChangeLog	2007-12-18 13:35:51 UTC (rev 2108)
@@ -2,6 +2,8 @@
 
  * tagmanager/c.c:
    Fix parsing C arrays (broken in r1952, oops).
+ * src/keybindings.c:
+   Don't flicker menubar when typing Shift-[a-z] in the VTE.
 
 
 2007-12-17  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c	2007-12-18 13:16:23 UTC (rev 2107)
+++ trunk/src/keybindings.c	2007-12-18 13:35:51 UTC (rev 2108)
@@ -693,8 +693,11 @@
 		return FALSE;
 	if (gtk_window_get_focus(GTK_WINDOW(app->window)) != vc->vte)
 		return FALSE;
-	if (state == 0 && (keyval < GDK_F1 || keyval > GDK_F35))
-		return FALSE;	// just to prevent menubar flickering
+	// prevent menubar flickering:
+	if (state == GDK_SHIFT_MASK && (keyval >= GDK_a && keyval <= GDK_z))
+		return FALSE;
+	if (state == 0 && (keyval < GDK_F1 || keyval > GDK_F35))	// e.g. backspace
+		return FALSE;
 
 	// make focus commands override any bash commands
 	for (i = GEANY_KEYS_GROUP_FOCUS; i < GEANY_KEYS_GROUP_TABS; i++)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list