static cb_ret_t dlg_handle_key (Dlg_head * h, int d_key) { unsigned long command; command = keybind_lookup_keymap_command (dialog_map, d_key); if ((command == CK_IgnoreKey) || (dlg_execute_cmd (h, command) == MSG_NOT_HANDLED)) return MSG_NOT_HANDLED; else return MSG_HANDLED; }
static cb_ret_t dlg_handle_key (WDialog * h, int d_key) { long command; command = keybind_lookup_keymap_command (dialog_map, d_key); if (command != CK_IgnoreKey) return dlg_execute_cmd (h, command); return MSG_NOT_HANDLED; }
static cb_ret_t dlg_handle_key (WDialog * h, int d_key) { unsigned long command; command = keybind_lookup_keymap_command (dialog_map, d_key); if (command == CK_IgnoreKey) return MSG_NOT_HANDLED; if (send_message (h, NULL, MSG_ACTION, command, NULL) == MSG_HANDLED || dlg_execute_cmd (h, command) == MSG_HANDLED) return MSG_HANDLED; return MSG_NOT_HANDLED; }
static cb_ret_t dlg_handle_key (Dlg_head * h, int d_key) { unsigned long command; command = keybind_lookup_keymap_command (dialog_map, d_key); if (command == CK_IgnoreKey) return MSG_NOT_HANDLED; if (h->callback (h, NULL, DLG_ACTION, command, NULL) == MSG_HANDLED || dlg_execute_cmd (h, command) == MSG_HANDLED) return MSG_HANDLED; return MSG_NOT_HANDLED; }
void dlg_process_event (WDialog * h, int key, Gpm_Event * event) { if (key == EV_NONE) { if (tty_got_interrupt ()) if (send_message (h, NULL, MSG_ACTION, CK_Cancel, NULL) != MSG_HANDLED) dlg_execute_cmd (h, CK_Cancel); return; } if (key == EV_MOUSE) h->mouse_status = dlg_mouse_event (h, event); else dlg_key_event (h, key); }
void dlg_process_event (Dlg_head * h, int key, Gpm_Event * event) { if (key == EV_NONE) { if (tty_got_interrupt ()) if (h->callback (h, NULL, DLG_ACTION, CK_Cancel, NULL) != MSG_HANDLED) dlg_execute_cmd (h, CK_Cancel); return; } if (key == EV_MOUSE) h->mouse_status = dlg_mouse_event (h, event); else dlg_key_event (h, key); }
void dlg_process_event (WDialog * h, int key, Gpm_Event * event) { switch (key) { case EV_NONE: if (tty_got_interrupt ()) dlg_execute_cmd (h, CK_Cancel); break; case EV_MOUSE: h->mouse_status = dlg_mouse_event (h, event); break; default: dlg_key_event (h, key); break; } }