mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 02:15:55 +08:00
Handle Shift+Tab to collapse/expand the sidebar
This commit is contained in:
parent
0bcfa06b09
commit
e9225a545e
@ -3214,6 +3214,10 @@ 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()) {
|
||||||
|
// Collapse side-panel with Shift+Tab
|
||||||
|
post_event(SimpleEvent(EVT_GLCANVAS_COLLAPSE_SIDEBAR));
|
||||||
|
}
|
||||||
else if (keyCode == WXK_SHIFT)
|
else if (keyCode == WXK_SHIFT)
|
||||||
{
|
{
|
||||||
translationProcessor.process(evt);
|
translationProcessor.process(evt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user