mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-20 12:29:18 +08:00
FIX: refine shortcuts on collapse/expand sidebar
Change-Id: I2332617e69ee73edeaabb5b6fd7a225ac073b76e (cherry picked from commit 1bb6c5c55bc780691c87e0e03a15d4387c358a80)
This commit is contained in:
parent
9a92a39c19
commit
59caced614
@ -3267,7 +3267,7 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
|
|||||||
// m_canvas->HandleAsNavigationKey(evt); // XXX: Doesn't work in some cases / on Linux
|
// m_canvas->HandleAsNavigationKey(evt); // XXX: Doesn't work in some cases / on Linux
|
||||||
//post_event(SimpleEvent(EVT_GLCANVAS_TAB));
|
//post_event(SimpleEvent(EVT_GLCANVAS_TAB));
|
||||||
}
|
}
|
||||||
else if (keyCode == WXK_TAB && evt.ShiftDown() && ! wxGetApp().is_gcode_viewer()) {
|
else if (keyCode == WXK_TAB && evt.ShiftDown() && !evt.ControlDown() && ! wxGetApp().is_gcode_viewer()) {
|
||||||
// Collapse side-panel with Shift+Tab
|
// Collapse side-panel with Shift+Tab
|
||||||
post_event(SimpleEvent(EVT_GLCANVAS_COLLAPSE_SIDEBAR));
|
post_event(SimpleEvent(EVT_GLCANVAS_COLLAPSE_SIDEBAR));
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,8 @@ RecenterDialog::RecenterDialog(wxWindow* parent, wxWindowID id, const wxString&
|
|||||||
|
|
||||||
init_bitmap();
|
init_bitmap();
|
||||||
|
|
||||||
|
SetBackgroundColour(*wxWHITE);
|
||||||
|
|
||||||
auto* main_sizer = new wxBoxSizer(wxVERTICAL);
|
auto* main_sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
auto* button_sizer = new wxBoxSizer(wxHORIZONTAL);
|
auto* button_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user