Even when I delete the shortcut ctrl+w from action "close" it still closes the window. Reproducible: Always
That is "interesting"...
I think I have to postpone this to 3.0, when we'll drop KDE's shortcut handling. There's something really fishy going on: * by default, ctrl-w is not set for file_close. * if I set ctrl-w to, for instance About KDE, KDE complains about a duplicate shortcut, but the dialog doesn't show another action with the ctrl-w shortcut.
Something similar happens with this shortcut in Krita 3.0 Beta (git 4a58260) I get the message: "The key sequence 'Ctrl+W' is ambiguous. Use 'Configure Shortcuts' from the 'Settings' menu to solve the ambiguity. No action will be triggered." There is no other action triggered by this shortcut and if I change it to something else like Ctrl+1 it works but if revert it to Ctrl+W Krita throws the same message again. Kind of bizarre...
The shortcuts for "Standard Actions" like open, save, copy, paste use an older configuration system which isn't playing nicely with Krita's shortcut management. Should look into KisActionManager::createStandardAction here...
Git commit 36861ec3b2608893a5c624560e5d3302bda19c31 by Boudewijn Rempt. Committed on 18/09/2018 at 11:30. Pushed by rempt into branch 'master'. Remove the shortcuts from the mdi window's system menu's actions Just changing the scope isn't enough: people also want to be able to configure the the close window action. Fortunately, that turns out to be quite possible. Related: bug 375524, bug 398729 M +8 -8 libs/ui/KisMainWindow.cpp https://commits.kde.org/krita/36861ec3b2608893a5c624560e5d3302bda19c31
Git commit 7de91a765bb10fe4c55ef851bd157177618a8171 by Boudewijn Rempt. Committed on 24/09/2018 at 06:57. Pushed by rempt into branch 'krita/4.1'. Remove the shortcuts from the mdi window's system menu's actions Just changing the scope isn't enough: people also want to be able to configure the the close window action. Fortunately, that turns out to be quite possible. Related: bug 375524, bug 398729 M +8 -8 libs/ui/KisMainWindow.cpp https://commits.kde.org/krita/7de91a765bb10fe4c55ef851bd157177618a8171