When opening the Settings dialog with the CTRL+. shortcut, the canvas.ctrl_is_pressed is set to true, and since the key_release_event is not triggered as the focus is not on the canvas anymore but on the dialog, the variable remains TRUE.
This causes a locked rotation of the item and all other things connected to that variable.
Steps to Test
Open the settings dialog with the shortcut, then close it and ensure the rotation is not locked.
Summary / How this PR fixes the problem?
When opening the Settings dialog with the CTRL+. shortcut, the
canvas.ctrl_is_pressed
is set to true, and since thekey_release_event
is not triggered as the focus is not on the canvas anymore but on the dialog, the variable remainsTRUE
. This causes a locked rotation of the item and all other things connected to that variable.Steps to Test
Open the settings dialog with the shortcut, then close it and ensure the rotation is not locked.