diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-05-23 23:51:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-05-24 23:33:08 +0100 |
| commit | 67e67ea42fcfd2a0805fd96f44a2435992a3320e (patch) | |
| tree | a477a6b7a9c18cd0e6e6821bbebaece9514259d4 /src/wx/dcp_panel.cc | |
| parent | 28c3c789cc903c5737902f4403b63765c9115089 (diff) | |
Try another way of fixing accelerators stealing text control arrow keys (#1263).
Diffstat (limited to 'src/wx/dcp_panel.cc')
| -rw-r--r-- | src/wx/dcp_panel.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc index 397a29d48..f2783af6b 100644 --- a/src/wx/dcp_panel.cc +++ b/src/wx/dcp_panel.cc @@ -23,6 +23,7 @@ #include "key_dialog.h" #include "isdcf_metadata_dialog.h" #include "audio_dialog.h" +#include "focus_manager.h" #include "lib/ratio.h" #include "lib/config.h" #include "lib/dcp_content_type.h" @@ -74,6 +75,8 @@ DCPPanel::DCPPanel (wxNotebook* n, boost::shared_ptr<Film> film) grid->Add (_name, wxGBPosition(r, 1), wxDefaultSpan, wxEXPAND | wxLEFT | wxRIGHT); ++r; + FocusManager::instance()->add(_name); + int flags = wxALIGN_CENTER_VERTICAL; #ifdef __WXOSX__ flags |= wxALIGN_RIGHT; |
