mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 12:51:07 -07:00
Clear focus when changing tools
This is a fix for a bug on MacOS where the delete key wasn't working. A text field from the tools was in focus, which caught the key event, preventing objects from being deleted. Fixes #7754 and CURA-7585.
This commit is contained in:
parent
4372099e1d
commit
c38ee8a365
1 changed files with 4 additions and 0 deletions
|
|
@ -78,6 +78,10 @@ Item
|
||||||
{
|
{
|
||||||
base.activeY = y;
|
base.activeY = y;
|
||||||
}
|
}
|
||||||
|
//Clear focus when tools change. This prevents the tool grabbing focus when activated.
|
||||||
|
//Grabbing focus prevents items from being deleted.
|
||||||
|
//Apparently this was only a problem on MacOS.
|
||||||
|
forceActiveFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Workaround since using ToolButton's onClicked would break the binding of the checked property, instead
|
//Workaround since using ToolButton's onClicked would break the binding of the checked property, instead
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue