Allow '+' as separator for key mapping as in "key=Alt_L+Tab"

This commit is contained in:
Sascha Hlusiak
2008-03-30 12:44:39 +02:00
parent ce01777488
commit 2aeaf7b7f3

View File

@@ -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_