making all keys lowercase using shiftmask to determinate.

This commit is contained in:
Enno Boland (tox)
2009-09-09 23:15:39 +02:00
parent b35dd76344
commit 03afc9d985
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -263,8 +263,9 @@ keypress(GtkWidget* w, GdkEventKey *ev, Client *c) {
else
focus = BROWSER;
for(i = 0; i < LENGTH(keys); i++) {
if(focus & keys[i].focus && ev->keyval == keys[i].keyval &&
CLEANMASK(ev->state) == keys[i].mod
if(focus & keys[i].focus
&& gdk_keyval_to_lower(ev->keyval) == keys[i].keyval
&& CLEANMASK(ev->state) == keys[i].mod
&& keys[i].func) {
keys[i].func(c, &(keys[i].arg));
processed = TRUE;