Ticket #1322: escape.diff

File escape.diff, 459 bytes (added by eriktorbjorn, 20 years ago)

Patch against a December 5 CVS snapshot

  • scummvm/gui/dialog.cpp

    diff -ur --exclude=CVS ScummVM/scummvm/gui/dialog.cpp ScummVM+hack/scummvm/gui/dialog.cpp
    old new  
    194194        }
    195195
    196196        // ESC closes all dialogs by default
    197         if (keycode == 27)
     197        if (keycode == 27) {
     198                setResult(-1);
    198199                close();
     200        }
    199201
    200202        // TODO: tab/shift-tab should focus the next/previous focusable widget
    201203}