From 4163a0acc6555e5127133beaa3aec71ccb669d74 Mon Sep 17 00:00:00 2001 From: portix Date: Wed, 29 Jun 2011 17:51:01 +0200 Subject: Allow non ascii shortcuts, fixes #34 --- src/util.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/util.c') 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*{{{*/ -- cgit v1.2.3