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) { 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 (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; } }