* 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 371e4faceb
commit d52579b3a1
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

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