Lines Matching defs:key
114 int key;
120 for (key = KEY_MIN; key != KEY_MAX; ++key) {
121 name = (char*) keyname(key);
130 keynames[keynames_count].keycode = key;
144 * with the prefix of a pre-defined key.
179 /* Return the keycode for a key with modifiers applied.
187 * Returns ERR if the modifiers cannot be applied to this key.
189 int curskey_mod_key(int key, unsigned int modifiers) {
191 if ((key >= 'A' && key <= '_') || (key >= 'a' && key <= 'z') || key == ' ')
192 key = key % 32;
199 (key >= 0 && key <= CURSKEY_MAX_META_CHAR) &&
200 ! (invalid_meta_char_mask[key/65] & (1UL << (key % 64)))) {
201 key = meta_keycode_start + key;
207 return key;
210 /* Return the ncurses keycode for a key definition.
220 * - The key definition is NULL or empty
221 * - The key could not be found ("KEY_FOO")
222 * - The key combination is invalid in general ("C-TAB", "C-RETURN")
223 * - The key is invalid because of compile time options (the
225 * - The key is invalid because it could not be defined by