debug: remove duplicate information
parent
bf091be778
commit
73a07215cc
|
@ -1637,21 +1637,22 @@ const sc *get_shortcut(int *kbinput)
|
||||||
sc *s;
|
sc *s;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "get_shortcut(): kbinput = %d, meta_key = %s -- ", *kbinput, meta_key ? "TRUE" : "FALSE");
|
fprintf(stderr, "get_shortcut(): kbinput = %d, meta_key = %s -- ",
|
||||||
|
*kbinput, meta_key ? "TRUE" : "FALSE");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (s = sclist; s != NULL; s = s->next) {
|
for (s = sclist; s != NULL; s = s->next) {
|
||||||
if ((s->menus & currmenu) && *kbinput == s->seq
|
if ((s->menus & currmenu) && *kbinput == s->seq
|
||||||
&& meta_key == (s->type == META)) {
|
&& meta_key == (s->type == META)) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf (stderr, "matched seq \"%s\", and btw meta was %d (menu is %x from %x)\n",
|
fprintf (stderr, "matched seq '%s' (menu is %x from %x)\n",
|
||||||
s->keystr, meta_key, currmenu, s->menus);
|
s->keystr, currmenu, s->menus);
|
||||||
#endif
|
#endif
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf (stderr, "matched nothing, btw meta was %d\n", meta_key);
|
fprintf (stderr, "matched nothing\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue