version 1.61, 2013/10/10 11:57:52 |
version 1.62, 2014/02/10 11:20:41 |
|
|
goto partial_key; |
goto partial_key; |
} |
} |
|
|
|
/* Look for matching key string and return if found. */ |
|
tk = tty_keys_find(tty, buf, len, &size); |
|
if (tk != NULL) { |
|
if (tk->next != NULL) |
|
goto partial_key; |
|
key = tk->key; |
|
goto complete_key; |
|
} |
|
|
/* Try to parse a key with an xterm-style modifier. */ |
/* Try to parse a key with an xterm-style modifier. */ |
switch (xterm_keys_find(buf, len, &size, &key)) { |
switch (xterm_keys_find(buf, len, &size, &key)) { |
case 0: /* found */ |
case 0: /* found */ |
|
|
break; |
break; |
case 1: |
case 1: |
goto partial_key; |
goto partial_key; |
} |
|
|
|
/* Look for matching key string and return if found. */ |
|
tk = tty_keys_find(tty, buf, len, &size); |
|
if (tk != NULL) { |
|
if (tk->next != NULL) |
|
goto partial_key; |
|
key = tk->key; |
|
goto complete_key; |
|
} |
} |
|
|
first_key: |
first_key: |