Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotkey customisation support in SelectTool #57

Open
takaakifuji opened this issue Oct 26, 2021 · 0 comments
Open

Hotkey customisation support in SelectTool #57

takaakifuji opened this issue Oct 26, 2021 · 0 comments

Comments

@takaakifuji
Copy link

Both G3 and G2 support hotkey customisation for the builtin .glyphsTool plugins via the user defaults:

$ defaults write com.GeorgSeifert.Glyphs3 AnnotationTool.Hotkey 'q'

I think it's nice to have it supported also in the Python wrapper by default.

def trigger(self):
    return Glyphs.defaults['.'.join((type(self).__name__.replace('NSKVONotifying_', ''), 'Hotkey'))] or self.keyboardShortcut

Replacing the trigger() method in plugins.py like above will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant