* Capture the Alt-F4 key combination in main
    dialog handler
    Windows does not provide shutdown signal to
    application when Alt-F4 is pressed.
pull/1/head
David Freese 2012-12-07 10:30:11 -06:00
rodzic 2719b0fc43
commit 1884f2f2f7
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -2595,6 +2595,8 @@ int default_handler(int event)
Fl_Widget* w = Fl::focus();
if ((key == FL_F + 4) && Fl::event_alt()) clean_exit(true);
if (w == fl_digi_main || w->window() == fl_digi_main) {
int key = Fl::event_key();
if (key == FL_Escape || (key >= FL_F && key <= FL_F_Last) ||