Lines Matching refs:binder
72 static void _kt_assign_action(KeySym *sym, KtBinder binder, KtKeyFn *keyfn,
205 int _kt_set_keybinding(KeyTab *kt, KtBinder binder, const char *keyseq, in _kt_set_keybinding() argument
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
312 _kt_assign_action(kt->table + first, binder, keyfn, data); in _kt_set_keyfn()
372 sym->binder = -1; in _kt_set_keyfn()
373 _kt_assign_action(sym, binder, keyfn, data); in _kt_set_keyfn()
750 static void _kt_assign_action(KeySym *sym, KtBinder binder, KtKeyFn *keyfn, in _kt_assign_action() argument
758 if(binder < 0 || binder >= KTB_NBIND) in _kt_assign_action()
763 action = sym->actions + binder; in _kt_assign_action()
777 sym->binder = i < KTB_NBIND ? i : -1; in _kt_assign_action()
788 void _kt_clear_bindings(KeyTab *kt, KtBinder binder) in _kt_clear_bindings() argument
801 _kt_assign_action(kt->table + oldkey, binder, 0, NULL); in _kt_clear_bindings()
808 if(sym->binder < 0) { in _kt_clear_bindings()
939 int _kt_add_bindings(KeyTab *kt, KtBinder binder, const KtKeyBinding *bindings, in _kt_add_bindings() argument
956 if(_kt_set_keybinding(kt, binder, bindings[i].keyseq, bindings[i].action)) in _kt_add_bindings()