How do I add custom shortcuts to functions in gtk4

Note that subclassing is not strictly necessary to add actions.
It’s also possible to insert a Gio.SimpleActionGroup() to any widget, and add custom actions to it.

I gave a few examples in old topics:

1 Like