This is a rebase and modernization of @hpohlmeyer's #591.
Our use case is that we need to unregister the default toggleLink commands to replace them with our own more sophisticated link editing UI.
Note that before this PR, both Mac and Windows-style shortcuts worked on both platforms. After this PR, Mac gets standard mac shortcuts (mostly Command + ...) and other platforms get standard Windows shortcuts (mostly Ctrl + ...). I think this is preferable and makes the code clearer. However, if this change is not desirable, I can revise this PR to only add names and not split commands by platform.
This is a rebase and modernization of @hpohlmeyer's #591.
Our use case is that we need to unregister the default toggleLink commands to replace them with our own more sophisticated link editing UI.
Note that before this PR, both Mac and Windows-style shortcuts worked on both platforms. After this PR, Mac gets standard mac shortcuts (mostly Command + ...) and other platforms get standard Windows shortcuts (mostly Ctrl + ...). I think this is preferable and makes the code clearer. However, if this change is not desirable, I can revise this PR to only add names and not split commands by platform.