Creates a new shortcut for this that calls the given callback with arguments according to
format_string.
The arguments and format string must be provided in the same way as with [ctor@GLib.Variant.new].
This function is a convenience wrapper around [method@Gtk.WidgetClass.add_shortcut] and must be called during class initialization. It does not provide for user data, if you need that, you will have to use [method@Gtk.WidgetClass.add_shortcut] with a custom shortcut.
Note: Since 4.24, this function takes key aliases into account. See [func@Gdk.keyval_get_aliases] for more information on key aliases. To make a shortcut for an individual key, use [method@Gtk.WidgetClass.add_shortcut].
| this |
the class to add the binding to |
| keyval |
key value of binding to install |
| mods |
key modifier of binding to install |
| callback |
the callback to call upon activation |
| format_string |
`GVariant` format string for arguments |
| ... |
arguments, as given by format string |