Lines Matching defs:key
108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice;
195 while (key != KEY_ESC) {
196 key = wgetch(dialog);
200 if (toupper(key) == toupper(item_str()[0]))
204 if (i < max_choice || key == KEY_UP || key == KEY_DOWN ||
205 key == '+' || key == '-') {
206 if (key == KEY_UP || key == '-') {
228 continue; /* wait for another key press */
231 } else if (key == KEY_DOWN || key == '+') {
256 continue; /* wait for another key press */
271 continue; /* wait for another key press */
273 switch (key) {
293 button = ((key == KEY_LEFT ? --button : ++button) < 0)
301 key = KEY_ESC;
304 key = on_key_esc(dialog);
318 return key; /* ESC pressed */