GNOME Extension keyboard shortcut

I have made a simple GNOME extension for changing display configurations from the quick settings menu, and was wondering if it is possible to register for shortcuts in a GNOME extension (so create a keyboard shortcut that my extension is able to react to). I know how to do this in GTK, but since extensions don’t use GTK I was unsure what the solution was.

I looked through the documentation on Extensions | GNOME JavaScript but was unable to find any information on this topic.

https://gjs-docs.gnome.org/meta15~15/meta.display#method-add_keybinding

1 Like