Shortcut missing from the shortcut menu

Got the file, removed it.

Hi @GeorgSeifert,

Do you have any news about this issue ?
There is a way to manually set shortcut, without using Preferences>Shortcut ?

I didn’t have time to properly look into it. But it looked quite different for me.

After investigation it’s seems that I have multiple script assigned to the same shortcut.

Checking with print(Glyphs.defaults["NSUserKeyEquivalents"]) allowed me to see that these shortcuts have the same shortcuts.

@~$ Selects all points to the top of the selection
@~$ Move Selection Up 10 Units at Italic Angle
@~$ Move Selection Down 10 Units at Italic Angle
@~$ Selects all points to the bottom of the selection
@~b CurveEQ: Balance Handles
@~b Balance
^8 Change LayerColor to Purple
^8 Change Color Purple

Here is my complete Glyphs.defaults["NSUserKeyEquivalents"]

{
    "Add Extremes" = "@$s";
    "Add sbix Images to Font" = "~^)";
    "Align Selected Nodes with Background" = "@$x";
    Balance = "@~b";
    "Center anchors between selected points" = "~=";
    "Change Color Purple" = "^8";
    "Change LayerColor to Blue" = "^6";
    "Change LayerColor to Brown" = "^2";
    "Change LayerColor to DarkBlue" = "^7";
    "Change LayerColor to DarkGreen" = "^5";
    "Change LayerColor to Green" = "^4";
    "Change LayerColor to Magenta" = "^9";
    "Change LayerColor to Orange" = "^1";
    "Change LayerColor to Purple" = "^8";
    "Change LayerColor to Red" = "^0";
    "Change LayerColor to Yellow" = "^3";
    "Copy glyph's foregrounds to backgrounds." = "@~c";
    "CurveEQ: Balance Handles" = "@~b";
    "Delete Diagonal Nodes Between Extremes" = "@$d";
    "Duplicate Selected Nodes" = "~";
    "HT LetterSpacer UI" = "@h";
    "Insert Glyph to Background" = "^i";
    "Make \"knife\" Layer" = "^$1";
    "Make Backup Layer" = "@~s";
    "Make Node First" = "~$";
    "Make Selected Node First" = "^<";
    "Move Selection Down 1 Units at Italic Angle" = "@~";
    "Move Selection Down 10 Units at Italic Angle" = "@~$";
    "Move Selection Up 1 Units at Italic Angle" = "@~";
    "Move Selection Up 10 Units at Italic Angle" = "@~$";
    "New Tab" = "@~^t";
    "Open Corners" = "@$r";
    "RMX Monospacer" = "@$m";
    "RMX Tuner" = "@$t";
    "Reconnect Nodes" = "@$";
    "Save With Last Change Log" = "@s";
    "Select All Anchors" = "@~$a";
    "Select Next Sample String" = "^+";
    "Select Previous Sample String" = "^-";
    "Selects all points to the bottom of the selection" = "@~$";
    "Selects all points to the left of the selection" = "@$";
    "Selects all points to the right of the selection" = "@$";
    "Selects all points to the top of the selection" = "@~$";
    "Sharpen Corner" = "@$e";
    "Show Masters of Next Glyph" = "@~^";
    "Show Masters of Previous Glyph" = "@~^";
    "Show Speed Punk" = "^,";
    "Show Variable Font Preview 3" = "@~^v";
    "Show all Masters" = "~^";
    "Tidy up Paths" = "@$\U00f9";
    "Toggle Backup Layer" = "@$,";
    Transformations = "@t";
}

After opening (~/Library/Preferences/com.GeorgSeifert.Glyphs3.plist ) and removed all duplicated shortcut in NSUserKeyEquivalents, nothing changed. My Shorcut > Customized tab still empty.

Have you tried using NSDictionary to write the dict?

Try this:

from Foundation import NSDictionary

myprefs = dict(Glyphs.defaults["NSUserKeyEquivalents"])

myprefs["my_tool"] = "my_key_combo"

Glyphs.defaults["NSUserKeyEquivalents"] = myprefs

This reads your preferences as a Python dict, then assigns a new key/value, and writes it back to the original preferences (where it will be stored as an NSDictionary)

Edit: Previous post was edited, so this is not relevant anymore

PS : I tried to remove all shortcuts and assign new one from Glyphs, even after that my Customize tab still empty.

The calculation of the Customization flag is broken. But the shortcut should work as expected.
For now, search for the name of the item you are looking for.

1 Like