SOLVED Extension shortcuts may override default shortcuts
-
See for example here:
https://github.com/LettError/editThatNextMasterRoboFontExtension/issues/6Would it be possible to think of a mechanism that checks for the existence of default/user-defined shortcut before allowing an extension to override the same combination?
-
And by further in-depth research... and rereading my own code :) RoboFont already ignores existing short cuts for extensions.
-
added a note about short keys to Extension File Spec > Menu Item Description.
-
a warning will be printed in future versions!
-
And by further in-depth research... and rereading my own code :) RoboFont already ignores existing short cuts for extensions.
-
an extension can look that up...
from mojo.UI import shortKeyExists, createModifier m = createModifier(command=True) print(shortKeyExists((m, 'q')))
maybe RF should warn if this happens... :)
-
@frederik What if the extension developer is completely unaware they are overwriting a default?
-
Its not allowed to set a new short cut in the prefs, fe:
An extension can idd overwrite an existing short cut. I kinda like that... its up to extension dev to check this, or to users to report this.