Lines Matching full:binding

4  *  dlg_keys.c -- runtime binding support for dialog
38 DLG_KEYS_BINDING *binding; /* list of bindings */ variable
46 * For a given named widget's window, associate a binding table.
49 dlg_register_window(WINDOW *win, const char *name, DLG_KEYS_BINDING * binding) in dlg_register_window() argument
55 p->binding = binding; in dlg_register_window()
63 p->binding = binding; in dlg_register_window()
72 * Trace the binding information assigned to this window. For most widgets in dlg_register_window()
73 * there is only one binding table. forms have two, so the trace will be in dlg_register_window()
97 for (n = 0; p->binding[n].is_function_key >= 0; ++n) { in key_is_bound()
98 if (p->binding[n].curses_key == curses_key in key_is_bound()
99 && p->binding[n].is_function_key == function_key) { in key_is_bound()
114 * h/j/k/l for navigation into a cursor key. Do this by binding the key
132 /* ignore binding if there is no key to bind */ in dlg_register_buttons()
160 p->binding = q; in dlg_register_buttons()
188 if (p->binding[1].is_function_key < 0) in dlg_unregister_window()
189 free(p->binding); in dlg_unregister_window()
202 * If there is no binding associated with the widget, it simply returns
248 for (q = p->binding; q->is_function_key >= 0; ++q) { in dlg_lookup_key()
588 * Find a user-defined binding, given the curses key code.
599 && p->binding->curses_key == curses_key) { in find_binding()
600 result = p->binding; in find_binding()
608 * Built-in bindings have a nonzero "win" member, and the associated binding
621 result = a->binding[0].curses_key - b->binding[0].curses_key; in compare_bindings()
638 * Find a user-defined binding, given the curses key code. If it does not
658 entry->binding = data; in make_binding()
742 * Binding a printable character with dialog is possible but not useful.
901 DLG_KEYS_BINDING * binding) in dump_one_binding() argument
904 int fkey = (binding->curses_key > 255); in dump_one_binding()
907 dump_curses_key(fp, binding->curses_key); in dump_one_binding()
909 dump_dialog_key(fp, binding->dialog_key); in dump_one_binding()
910 actual = dlg_lookup_key(win, binding->curses_key, &fkey); in dump_one_binding()
912 if (is_DLGK_MOUSE(binding->curses_key) && is_DLGK_MOUSE(actual)) { in dump_one_binding()
916 if (actual != binding->dialog_key) { in dump_one_binding()
944 for (q = p->binding; q->is_function_key >= 0; ++q) { in dlg_dump_window_keys()