akiraux / Akira

Native Linux App for UI and UX Design built in Vala and GTK
GNU General Public License v3.0
5.24k stars 203 forks source link

Prevent ctrl_is_pressed from remaining true #658

Closed Alecaddd closed 2 years ago

Alecaddd commented 2 years ago

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 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.