Skip to content

Commit

Permalink
Make Alt+F4 close the application rather than terminate it
Browse files Browse the repository at this point in the history
Requested in #82. This change also makes it possible to use Alt+F+X key combination to exit the application.
  • Loading branch information
erengy committed Apr 19, 2015
1 parent 54c3dfe commit 323c95d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion res/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<item name="Play next episode&#9;Ctrl+N" action="PlayNext()"/>
<item name="Play random anime&#9;Ctrl+R" action="PlayRandomAnime()"/>
<item type="separator"/>
<item name="Exit&#9;Alt+F4" action="Exit()"/>
<item name="E&xit" action="Exit()"/>
</menu>
<!-- Services -->
<menu name="Services">
Expand Down
3 changes: 0 additions & 3 deletions src/ui/dlg/dlg_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,6 @@ BOOL MainDialog::PreTranslateMessage(MSG* pMsg) {
Execute(Settings.library_folders.at(index));
return TRUE;
}
} else if (pMsg->wParam == VK_F4) {
Destroy();
return TRUE;
} else if (handle_menu_accelerator()) {
return TRUE;
}
Expand Down

0 comments on commit 323c95d

Please sign in to comment.