Bug 390874

Summary: Some "Canvas Input Settings" shortcuts cannot be removed
Product: [Applications] krita Reporter: akwky
Component: Shortcuts and Canvas Input SettingsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: ghevan, halla, mail
Priority: NOR Keywords: investigated, triaged
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Example of an unremovable shortcut.

Description akwky 2018-02-21 22:22:35 UTC
Created attachment 110882 [details]
Example of an unremovable shortcut.

I am unable to remove some of the unwanted shortcuts in canvas input settings. For example "Rotate canvas" category maps the key "4" to "Rotate left" by default. Popup menu offers deletion, but clicking it has no effect. 

Applies only on SOME of the shortcuts. Others are removed without problem.

Reproducible: Always

Steps to Reproduce:
1. Click Settings > Configure Krita > Canvas Input Settings
2. Open a category (Rotate canvas)
3. Right click on "Key combination ; '4' ; Rotate Canvas" shortcut
4. Choose Delete shortcut
5. Nothing happens 

Desired behavior:
The shortcut is removed, or a message pops up explaining why it cannot be removed.
Comment 1 Halla Rempt 2018-02-22 09:51:31 UTC
Hi,

I when I try to reproduce I see that after the popup closes the entry isn't updated, but if I then move to another line, the key combination is set to None. Does that happen for you as well, or does the key remains set to '4' even if you move to another line or press OK and reopen the dialog?
Comment 2 akwky 2018-02-22 10:20:14 UTC
Hi. It remains set to '4' for me. 
It does not update after closing/reopening the dialog. The line is also unaffected when moving to different lines.
Comment 3 Halla Rempt 2018-02-22 10:27:54 UTC
Weird... I've tested with 3.3.3 on windows and linux -- and while there are weird things going on, I'm always ending up with the shortcut deleted.
Comment 4 akwky 2018-02-23 23:30:23 UTC
Hello again. I tried several more times, but the shortcut is still there. Maybe the weird things happening has a slightly different results on my system. If it is of any help, the native language of the system is Czech, and Krita is switched back to US English.
Comment 5 Julian Steinmann 2018-09-15 14:20:42 UTC
I can reproduce this behavior with Krita-4.2.0alpha (commit a794d32). When following the steps from the original comment, the shortcut does indeed not get deleted and for me it doesn't change even after moving to another line. I am able to remove this shortcut by clicking on the "4" and then using the Backspace icon next to the shortcut.

Operating System: KDE neon Developer Edition
KDE-Plasma-Version: 5.13.90
Qt-Version: 5.11.1
KDE-Frameworks-Version: 5.51.0
Comment 6 vanyossi 2020-01-05 22:24:04 UTC
Some actions cannot be without shorctus. As those shortcuts are needed In newer versions (i.e. 4.2.8) when you try to delete such actions you get a system warning: "Deleting last shortcut for this action! It is not allowed to remove some default shortcuts. Modify it instead"

Some actions do need a shortcut for krita to be used, from this point of view ithe behaviour is intentional.