diff options
author | portix <portix@gmx.net> | 2011-06-29 17:51:01 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2011-06-29 17:51:01 +0200 |
commit | 4163a0acc6555e5127133beaa3aec71ccb669d74 (patch) | |
tree | 25d418f1152931312fd1048dd80834c32c45cc47 /src/util.c | |
parent | 83f48a518b1dfd77d8504614dad2752ad492e4f0 (diff) | |
download | dwb-4163a0acc6555e5127133beaa3aec71ccb669d74.zip |
Allow non ascii shortcuts, fixes #34
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -108,15 +108,12 @@ dwb_util_keyval_to_char(guint keyval) { if ( (unichar = gdk_keyval_to_unicode(keyval)) ) { if ( (length = g_unichar_to_utf8(unichar, key)) ) { memset(&key[length], '\0', 6-length); + return key; } } - if (length && isprint(key[0])) { - return key; - } - else { - FREE(key); - return NULL; - } + FREE(key); + return NULL; + //} }/*}}}*/ /* dwb_util_char_to_arg(char *value, DwbType type) return: Arg*{{{*/ |