RFC: Configurable shortcut actions
In KXmlgui applications it is possible for the users to update the shortcuts used to trigger some actions. This is very useful. The problem to implement something like this in Kirigami, we would need to add a KConfig dependency to store the shortcuts. A possible solution would be to implement this feature in a new library and extends Kirigami.Action to make it possible to register the shortcuts and list of the managed actions. This would also mean that every kirigami application that wants to use this feature would need to replace all their Kirigami.Action with NewFramework.ManagedAction.
This is impractical for the developer and would mean that the behavior of the buttons isn't consistent across all the kirigami applications and inside the application themselves since it can happen that an application only use the ManegedAction element for only a few actions and not all.
An alternative solution (and in my opinion a better one) would be to add partial support to Kirigami.Action
for the feature and only try to manage the actions shortcuts if an ActionManager has been registered in Kirigami.ApplicationWindow
. That would reduce the number of changes required for an existing application to use this feature. The ActionManager interface could be defined in Kirigami and the actual implementation could live in Kirigami-addons or a new library. We will probably need to make sure that all the KDE kirigami applications use it for behavior consistency, but third-party applications can decide to not use this feature.