Bug 490463

Summary: Shortcut to reset the canvas rotation doesn't work
Product: [Applications] krita Reporter: virgilep <virgile.paultre>
Component: Shortcuts and Canvas Input SettingsAssignee: Krita Bugs <krita-bugs-null>
Status: VERIFIED WAITINGFORINFO    
Severity: normal CC: dimula73, info, rojasreinold
Priority: NOR Keywords: regression
Version First Reported In: 5.2.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Reset rotation shorcut

Description virgilep 2024-07-18 17:16:59 UTC
Created attachment 171766 [details]
Reset rotation shorcut

SUMMARY
When I launch Krita, my shortcut to reset the canvas rotation doesn't work.

STEPS TO REPRODUCE
1. Launch Krita without confirm the settings
2. Rotate the canvas
3. Click on the shortcut to reset the rotation

OBSERVED RESULT
The canvas reset rotation doesn't work

EXPECTED RESULT
The canvas rotation set to 0

SOFTWARE/OS VERSIONS
Windows: 11

ADDITIONAL INFORMATION
However, when I go into the canvas input settings and confirm them, the shortcut to reset the canvas works again.
If I restart Krita without going into the settings, the shortcut stops working.
I had to revert to the previous version to avoid this problem, krita 5.2.2

Thanks for your work.

Virgile
Comment 1 Reinold Rojas 2024-11-20 22:07:19 UTC
Hi virgilep,

I noticed you set the keyboard shortcut to "X" and I think you're using a shortcut in the "Canvas Input settings" menu. I think you probably have a conflict in "Keyboard shortcuts" menu that is causing this issue. 

Can you go to "Keyboard Shortcuts" menu put "X" the search and see if you have any use of that shortcut? If you have default settings you probably have it also set to "Swap Foreground and Background Colors".

thanks,
Reinold
Comment 2 virgilep 2024-11-21 09:08:31 UTC
Hi Reinold,

Thanks for your reply.

I tried using a different key for the shortcut while ensuring there were no conflicts, but the bug is still present. This occurs on all versions after 5.2.2.
Once I close the settings window, the shortcut starts working again. However, in practice, I have to open the settings window every time I launch Krita. Since I use it daily for my work, I decided to stick with the older version.
I use a custom pad for shortcuts, but I also tried using my keyboard, and the issue persists.

Virgile
Comment 3 Wolfgang Baer 2024-11-21 21:28:18 UTC
I cross checked in Krita 5.2.3 on Windows 11.

Canvas Input Settings -> Rotate Canvas is set to:
4 = Rotate Left
5 = Reset Rotation
6 = Rotate Right

Keyboard Shortcuts -> Menu -> View is set to:
Rotate Left = Ctrl + [
Rotate Right = Ctrl + ]
Rotate Reset = none

Using 4 5 6 works as expected.

I can't use Ctrl + [ because of German keyboard.

Because of this I changed the keyboard shortcuts to:
Rotate Left = Ctrl + 8
Rotate Right = Ctrl + 9
Rotate Reset = Ctrl + 7

All combinations work as expected. No issues after closing Krita and no need to enter setting after restarting Krita.

Maybe there is another issue with your configuration that expresses itself as a shortcut issue?
Comment 4 Wolfgang Baer 2024-11-22 00:03:31 UTC
Also tested in 5.3 alpha - works as expected.
Comment 5 virgilep 2024-11-22 16:31:41 UTC
Hi Wolfgang,
I tried doing it like you, keeping Krita's default shortcut for rotation.
Indeed, it works. Thank you very much. I'll be able to use Krita's latest update now! :)
However, I have another issue, though it seems more like a display bug in the shortcut settings. I share other tools with the reset rotation shortcut, and since it's a number, 'Shift+5' appears as 'Shift+Clear' in the shortcut settings, while 'Ctrl+5' shows as 'Ctrl+Num+5.'
But it's not a big deal since all the shortcuts work. Thanks again for your help.

Have a great day!
Comment 6 virgilep 2024-11-22 16:32:50 UTC
(In reply to Wolfgang Baer from comment #4)
> Also tested in 5.3 alpha - works as expected.

Hi Wolfgang,
I tried doing it like you, keeping Krita's default shortcut for rotation.
Indeed, it works. Thank you very much. I'll be able to use Krita's latest update now! :)
However, I have another issue, though it seems more like a display bug in the shortcut settings. I share other tools with the reset rotation shortcut, and since it's a number, 'Shift+5' appears as 'Shift+Clear' in the shortcut settings, while 'Ctrl+5' shows as 'Ctrl+Num+5.'
But it's not a big deal since all the shortcuts work. Thanks again for your help.

Have a great day!
Comment 7 virgilep 2024-11-22 16:41:55 UTC
I know why it happens. It's because of the numeric pad... "Shift + numeric" pad creates a different shortcut...
Comment 8 Dmitry Kazakov 2025-02-02 14:23:16 UTC
Hi, all!

Should we close this bug as duplicate of this bug 329663?