mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2024-12-28 04:23:40 +01:00
jfkeys: fix key levels not working at all
This commit is contained in:
parent
beeb0c0724
commit
40ffe54250
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ void jfkeys_set(jfkeys *f, char const *labels)
|
||||||
static char const *get_level(char const *labels, int level)
|
static char const *get_level(char const *labels, int level)
|
||||||
{
|
{
|
||||||
/* Navigate to level */
|
/* Navigate to level */
|
||||||
while(level > 0) labels = strchrnul(labels, '|');
|
while(level > 0) {
|
||||||
|
labels = strchrnul(labels, '|');
|
||||||
|
labels += (*labels == '|');
|
||||||
|
level--;
|
||||||
|
}
|
||||||
return (*labels == 0) ? NULL : labels;
|
return (*labels == 0) ? NULL : labels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue