summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-09-09 23:15:39 +0200
committerEnno Boland (tox) <tox@s01.de>2009-09-09 23:15:39 +0200
commit03afc9d985bed1dd77576b28a74c45b0abb4804e (patch)
tree5c27a79893d819d376cd47afc2c8ddda1a18c881 /surf.c
parentb35dd763449dcfce376844565133f2149b9f4084 (diff)
downloadsurf-03afc9d985bed1dd77576b28a74c45b0abb4804e.tar.gz
surf-03afc9d985bed1dd77576b28a74c45b0abb4804e.tar.bz2
surf-03afc9d985bed1dd77576b28a74c45b0abb4804e.zip
making all keys lowercase using shiftmask to determinate.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/surf.c b/surf.c
index 5e3fc12..ab16c98 100644
--- a/surf.c
+++ b/surf.c
@@ -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;