Lines Matching defs:key
108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice;
194 while (key != KEY_ESC) {
195 key = wgetch(dialog);
199 if (toupper(key) == toupper(item_str()[0]))
203 if (i < max_choice || key == KEY_UP || key == KEY_DOWN ||
204 key == '+' || key == '-') {
205 if (key == KEY_UP || key == '-') {
227 continue; /* wait for another key press */
230 } else if (key == KEY_DOWN || key == '+') {
255 continue; /* wait for another key press */
270 continue; /* wait for another key press */
272 switch (key) {
292 button = ((key == KEY_LEFT ? --button : ++button) < 0)
300 key = KEY_ESC;
303 key = on_key_esc(dialog);
317 return key; /* ESC pressed */