Skip to content

Commit

Permalink
Adding App.onEscape()
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Jan 17, 2021
1 parent 9777469 commit c013cc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/luwrain/app/notepad/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ Settings getSett()
return mainLayout.getLayout();
}

@Override public boolean onEscape(InputEvent event)
{
closeApp();
return true;
}

@Override public void closeApp()
{
if (isBusy())
Expand Down

0 comments on commit c013cc4

Please sign in to comment.