Shortcut for extension

Heya!
I thought I’d learn how to write gnome extensions and wanted to start with something simpler.
I want to add a shortcut to this extension: https://github.com/Rmano/gse-switch-focus-mode
I followed this vid + googling: https://www.youtube.com/watch?v=L6ewpCMkrRE&list=PLr3kuDAFECjZhW-p56BoVB7SubdUHBVQT&index=14

See first comment for code (sorry but due to the 2 Link limit)

The extension works normally, but the shortcut doesn’t.
When checking for errors via lg - it says that it doesn’t omit any errors.

I think I’m doing something fundamentally wrong - any nudges in the right direction would be very much appreciated.

Thank you!

1 Like

My current code of the extension.js is: https://pastebin.com/Dbyk17C4
Code of the xml: https://pastebin.com/xkKab0Le

I solved a similar issue, https://github.com/tuberry/color-picker/issues/2, by changing the name of the shortcut.
Not sure if it fits the situation you are experiencing. :thinking:

1 Like

I’ll have a look! Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.