Lines Matching refs:keyseq

69 static int _kt_parse_keybinding_string(const char *keyseq,
205 int _kt_set_keybinding(KeyTab *kt, KtBinder binder, const char *keyseq, in _kt_set_keybinding() argument
213 if(kt==NULL || !keyseq) { in _kt_set_keybinding()
239 return _kt_set_keyfn(kt, binder, keyseq, keyfn, data); in _kt_set_keybinding()
258 int _kt_set_keyfn(KeyTab *kt, KtBinder binder, const char *keyseq, in _kt_set_keyfn() argument
271 if(kt==NULL || !keyseq) { in _kt_set_keyfn()
282 for(size=0,kptr = keyseq; *kptr; kptr++) in _kt_set_keyfn()
297 if(_kt_parse_keybinding_string(keyseq, binary, &nc)) { in _kt_set_keyfn()
314 _del_StringMemString(kt->smem, kt->table[first].keyseq); in _kt_set_keyfn()
328 _err_record_msg(kt->err, "Can't bind \"", keyseq, in _kt_set_keyfn()
365 sym->keyseq = binary; in _kt_set_keyfn()
420 test = _kt_compare_strings(kt->table[mid].keyseq, kt->table[mid].nc, in _kt_locate_keybinding()
443 _kt_compare_strings(kt->table[*last].keyseq, nc, binary_keyseq, nc)==0) { in _kt_locate_keybinding()
446 _kt_compare_strings(kt->table[*last+1].keyseq, nc, binary_keyseq, nc)==0) in _kt_locate_keybinding()
544 static int _kt_parse_keybinding_string(const char *keyseq, char *binary, in _kt_parse_keybinding_string() argument
547 const char *iptr = keyseq; /* Pointer into keyseq[] */ in _kt_parse_keybinding_string()
630 } else if(iptr==keyseq && !IS_CTRL_CHAR(*iptr) && in _kt_parse_keybinding_string()
631 strcmp(keyseq, "up") != 0 && strcmp(keyseq, "down") != 0 && in _kt_parse_keybinding_string()
632 strcmp(keyseq, "left") != 0 && strcmp(keyseq, "right") != 0) { in _kt_parse_keybinding_string()
809 _del_StringMemString(kt->smem, sym->keyseq); in _kt_clear_bindings()
956 if(_kt_set_keybinding(kt, binder, bindings[i].keyseq, bindings[i].action)) in _kt_add_bindings()