summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-06-29 17:51:01 +0200
committerportix <portix@gmx.net>2011-06-29 17:51:01 +0200
commit4163a0acc6555e5127133beaa3aec71ccb669d74 (patch)
tree25d418f1152931312fd1048dd80834c32c45cc47 /src/util.c
parent83f48a518b1dfd77d8504614dad2752ad492e4f0 (diff)
downloaddwb-4163a0acc6555e5127133beaa3aec71ccb669d74.zip
Allow non ascii shortcuts, fixes #34
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/util.c b/src/util.c
index bc288fd1..3b7d9456 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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*{{{*/