SF.net SVN: geany-plugins:[1859] trunk/geany-plugins/webhelper/src/ gwh-keybindings.c

colombanw at users.sourceforge.net colombanw at xxxxx
Wed Jan 19 19:20:23 UTC 2011


Revision: 1859
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1859&view=rev
Author:   colombanw
Date:     2011-01-19 19:20:22 +0000 (Wed, 19 Jan 2011)

Log Message:
-----------
WebHelper: Improve a bit operation

Modified Paths:
--------------
    trunk/geany-plugins/webhelper/src/gwh-keybindings.c

Modified: trunk/geany-plugins/webhelper/src/gwh-keybindings.c
===================================================================
--- trunk/geany-plugins/webhelper/src/gwh-keybindings.c	2011-01-19 18:38:35 UTC (rev 1858)
+++ trunk/geany-plugins/webhelper/src/gwh-keybindings.c	2011-01-19 19:20:22 UTC (rev 1859)
@@ -72,7 +72,7 @@
   guint     keyval = event->keyval;
   guint     i;
   
-  if ((event->state & GDK_SHIFT_MASK) || (event->state & GDK_LOCK_MASK)) {
+  if (event->state & (GDK_SHIFT_MASK | GDK_LOCK_MASK)) {
     keyval = gdk_keyval_to_lower (keyval);
   }
   for (i = 0; ! handled && i < GWH_KB_COUNT; i++) {


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



More information about the Plugins-Commits mailing list