Skip to content

Commit

Permalink
[splash] Create a new document when closed by esc
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Feb 12, 2022
1 parent 00c8b3e commit 4bf9c3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/StartScreen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ void StartScreen::keyPressEvent(QKeyEvent* event)
{
if (event->key() == Qt::Key_Escape)
{
this->openNewDocument();
this->close();
return QWidget::keyPressEvent(event);
}
Expand Down

0 comments on commit 4bf9c3c

Please sign in to comment.