projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bccd0a
)
Make Cmd-W close the current file in the player on OS X (part of #1180).
author
Carl Hetherington
<cth@carlh.net>
Wed, 31 Jan 2018 22:18:31 +0000
(22:18 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 31 Jan 2018 22:18:31 +0000
(22:18 +0000)
src/tools/dcpomatic_player.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_player.cc
b/src/tools/dcpomatic_player.cc
index 4425f34d1e6d9cc72085676f6169a318ce73e5f5..930ab0a540fad0e50f45c10fbd656ca50476abaa 100644
(file)
--- a/
src/tools/dcpomatic_player.cc
+++ b/
src/tools/dcpomatic_player.cc
@@
-133,6
+133,14
@@
public:
main_sizer->Add (_info, 0, wxEXPAND | wxALL, 6);
overall_panel->SetSizer (main_sizer);
+#ifdef __WXOSX__
+ wxAcceleratorEntry* accel = new wxAcceleratorEntry[1];
+ accel[0].Set(wxACCEL_CTRL, static_cast<int>('W'), ID_file_close);
+ wxAcceleratorTable accel_table (1, accel);
+ SetAcceleratorTable (accel_table);
+ delete[] accel;
+#endif
+
UpdateChecker::instance()->StateChanged.connect (boost::bind (&DOMFrame::update_checker_state_changed, this));
}