Lines Matching defs:mapping
234 if (map->mapping[i] >= 0) {
235 if (map->key[map->mapping[i]]->type == KEYMAP_MULTI)
237 map->key[map->mapping[i]]->value.next);
267 if (current->mapping[(unsigned char)chr] < 0) {
268 if (current->mapping[(unsigned char)chr] == MAPPING_UNUSED) {
270 current->mapping[(unsigned char)chr] =
292 /* the mapping was used but freed, reuse it */
293 ki = - current->mapping[(unsigned char) chr];
294 current->mapping[(unsigned char) chr] = ki;
326 the_key = current->key[current->mapping[(unsigned char)chr]];
347 if (current->mapping[i] < 0)
348 continue; /* no mapping for the key, next! */
350 key = current->key[current->mapping[i]];
369 * Add the sequence of characters given in sequence as the key mapping
404 key_ent = current->mapping[(unsigned char) sequence[j]];
419 current->key[current->mapping[(int)sequence[length - 1]]] = tmp_key;
494 new_map->mapping[i] = MAPPING_UNUSED; /* no mapping for char */
538 int c, mapping;
627 mapping = current->mapping[k];
628 if (((_cursesi_state == INKEY_TIMEOUT) || (mapping < 0))
629 || ((current->key[mapping]->type == KEYMAP_LEAF)
630 && (current->key[mapping]->enable == FALSE))) {
646 if (current->key[current->mapping[k]]->type == KEYMAP_LEAF) {
660 return current->key[current->mapping[k]]->value.symbol;
667 current = current->key[current->mapping[k]]->value.next;
743 if (current->mapping[i] < 0)
744 continue; /* no mapping for the key, next! */
746 key = current->key[current->mapping[i]];
761 * Add a custom mapping of a key sequence to key symbol.