SF.net SVN: geany: [2288] trunk/src/keybindings.c

eht16 at users.sourceforge.net eht16 at xxxxx
Wed Feb 27 14:21:35 UTC 2008


Revision: 2288
          http://geany.svn.sourceforge.net/geany/?rev=2288&view=rev
Author:   eht16
Date:     2008-02-27 06:21:34 -0800 (Wed, 27 Feb 2008)

Log Message:
-----------
Fix ignoring of some keybindings when caps lock is active (introduced in r2253).

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

Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c	2008-02-27 13:17:29 UTC (rev 2287)
+++ trunk/src/keybindings.c	2008-02-27 14:21:34 UTC (rev 2288)
@@ -742,10 +742,12 @@
     state = ev->state & GEANY_KEYS_MODIFIER_MASK;
 
 	/* hack to get around that CTRL+Shift+r results in GDK_R not GDK_r */
-	if (state & GDK_SHIFT_MASK)
+	if ((ev->state & GDK_SHIFT_MASK) || (ev->state & GDK_LOCK_MASK))
 		if (keyval >= GDK_A && keyval <= GDK_Z)
 			keyval += GDK_a - GDK_A;
 
+	/*geany_debug("%d (%d) %d (%d)", keyval, ev->keyval, state, ev->state);*/
+
 	/* special cases */
 #ifdef HAVE_VTE
 	if (vte_info.have_vte && check_vte(state, keyval))


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