Tab shortcut key to switch between prepare/preview tab

#383

(cherry picked from commit 93f3d8b0cecaa13fa3f3ab5fc483cfb8ac4852c4)
This commit is contained in:
SoftFever 2023-03-05 01:34:36 +08:00
parent d535d70d03
commit 2131c658d8
4 changed files with 13 additions and 9 deletions

View file

@ -321,10 +321,10 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_
});
//BBS
Bind(EVT_SELECT_TAB, [this](wxCommandEvent&evt) {
TabPosition pos = (TabPosition)evt.GetInt();
m_tabpanel->SetSelection(pos);
});
// Bind(EVT_SELECT_TAB, [this](wxCommandEvent&evt) {
// TabPosition pos = (TabPosition)evt.GetInt();
// m_tabpanel->SetSelection(pos);
// });
Bind(EVT_SYNC_CLOUD_PRESET, &MainFrame::on_select_default_preset, this);