Lines Matching refs:key

3  * Translate key codes into ASCII
28 /* Special flag ORed with key code to indicate release */
34 * These takes map key codes to ASCII. 0xff means no key, or special key.
36 * 'modifier' key is pressed and one for when the ctrl modifier key is
173 * The table contains conversions from scan key codes to ECMA-48 escape
248 * Process a modifier/special key press or release and decide which key
254 * @param key Key code to process
259 int key, int release)
274 if (key == tab->left_keycode || key == tab->right_keycode)
282 switch (key) {
320 * Search an int array for a key value
324 * @param key Key value to find
327 static int array_search(int *array, int count, int key)
332 if (array[i] == key)
382 * Check a list of key codes against the previous key scan
384 * Given a list of new key codes, we check how many of these are the same
388 * @param keycode List of key codes to examine
389 * @param num_keycodes Number of key codes
390 * @param same Returns number of key codes which are the same
412 * Checks and converts a special key code into ANSI 3.64 escape sequence.
420 * Return: number of characters output, if the key was converted, otherwise 0.
447 * Converts and queues a list of key codes in escaped ASCII string form
448 * Convert a list of key codes into ASCII
458 * @param keycode List of key codes to examine
459 * @param num_keycodes Number of key codes
464 * @param same Number of key codes which are the same
480 int key = keycode[i] & KEY_MASK;
482 if (key >= table->num_entries || table->xlate[key] == 0xff) {
483 table = process_modifier(config, key,
490 int key = keycode[i];
494 * For a normal key (with an ASCII value), add it; otherwise
495 * translate special key to escape sequence if possible.
497 if (key < table->num_entries) {
498 ch = table->xlate[key];
504 if (key >= KEY_KP7 && key <= KEY_KPDOT &&
505 key != KEY_KPMINUS && key != KEY_KPPLUS)
512 ch_count += input_keycode_to_ansi364(config, key,
596 /* Don't output any ASCII characters if this is a key release */