Skip to content

Commit 4affbce

Browse files
committed
UI: make ALT+F4 return to editor when active
1 parent 8bac3e0 commit 4affbce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ void System::printSource() {
11251125
void System::setExit(bool quit) {
11261126
if (!isClosing()) {
11271127
bool running = isRunning();
1128-
_state = quit ? kClosingState : kBackState;
1128+
_state = (quit && _editor == NULL) ? kClosingState : kBackState;
11291129
if (running) {
11301130
brun_break();
11311131
}

0 commit comments

Comments
 (0)