Revision: 1858 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1858&view=re... Author: colombanw Date: 2011-01-19 18:38:35 +0000 (Wed, 19 Jan 2011)
Log Message: ----------- WebHelper: Better support for keybindings when shift is locked
Also check the original mods state rather than the masked ones to translate to lowercase the key, so if the modifier that changes the key was masked out we still translate it.
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:07 UTC (rev 1857) +++ trunk/geany-plugins/webhelper/src/gwh-keybindings.c 2011-01-19 18:38:35 UTC (rev 1858) @@ -72,7 +72,7 @@ guint keyval = event->keyval; guint i;
- if (mods & GDK_SHIFT_MASK) { + if ((event->state & GDK_SHIFT_MASK) || (event->state & 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.
plugins-commits@lists.geany.org