From 2aeaf7b7f3a5117db5cde9f704a2c612fbab75c8 Mon Sep 17 00:00:00 2001 From: Sascha Hlusiak Date: Sun, 30 Mar 2008 12:44:39 +0200 Subject: [PATCH] Allow '+' as separator for key mapping as in "key=Alt_L+Tab" --- src/jstk_options.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jstk_options.c b/src/jstk_options.c index 04d0e5d..bf69c63 100644 --- a/src/jstk_options.c +++ b/src/jstk_options.c @@ -178,6 +178,7 @@ jstkParseButtonOption(const char* org, for (value = 0; value < MAXKEYSPERBUTTON; value++) if (current != NULL) { unsigned key; next = strchr(current, ','); + if (!next) next = strchr(current, '+'); if (next) *(next++) = '\0'; #ifdef _STRKEYSYM_H_INCLUDED_ key = XStringToKeysym(current); @@ -284,6 +285,7 @@ jstkParseAxisOption(const char* org, for (value = 0; value < MAXKEYSPERBUTTON; value++) if (current != NULL) { next = strchr(current, ','); + if (!next) next = strchr(current, '+'); if (next) *(next++) = '\0'; #ifdef _STRKEYSYM_H_INCLUDED_ @@ -313,6 +315,7 @@ jstkParseAxisOption(const char* org, for (value = 0; value < MAXKEYSPERBUTTON; value++) if (current != NULL) { next = strchr(current, ','); + if (!next) next = strchr(current, '+'); if (next) *(next++) = '\0'; key = strtol(current, NULL, 0); #ifdef _STRKEYSYM_H_INCLUDED_