mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Ctrl+A is handled differently on OSX than on Windows / Linux by wxWidgets
This commit is contained in:
parent
f626f69e90
commit
f42ce8c84a
1 changed files with 2 additions and 3 deletions
|
@ -5107,10 +5107,9 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
||||||
//#endif /* __APPLE__ */
|
//#endif /* __APPLE__ */
|
||||||
if ((evt.GetModifiers() & ctrlMask) != 0) {
|
if ((evt.GetModifiers() & ctrlMask) != 0) {
|
||||||
switch (keyCode) {
|
switch (keyCode) {
|
||||||
#ifndef __APPLE__
|
case 'a':
|
||||||
// Even though Control+A is captured by the accelerator on OSX/wxWidgets in Slic3r, it works in text edit lines.
|
case 'A':
|
||||||
case WXK_CONTROL_A: post_event(SimpleEvent(EVT_GLCANVAS_SELECT_ALL)); break;
|
case WXK_CONTROL_A: post_event(SimpleEvent(EVT_GLCANVAS_SELECT_ALL)); break;
|
||||||
#endif /* __APPLE__ */
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
case WXK_BACK: // the low cost Apple solutions are not equipped with a Delete key, use Backspace instead.
|
case WXK_BACK: // the low cost Apple solutions are not equipped with a Delete key, use Backspace instead.
|
||||||
#endif /* __APPLE__ */
|
#endif /* __APPLE__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue