Add a way to fetch multiple keystrokes for a single command #2493
Labels
changelog:api
A changelog entry should be put in the API section of the changelog.
good first issue
Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request.
target:major
Any docs related issue that should be merged into a major branch.
type:feature
A feature request.
Milestone
Type of report
Feature request
Provide description of the new feature
Some commands might have multiple hotkeys, we need to API that returns all the hotkeys.
There's already a
editor.getCommandKeystroke
but it supports only one returned keystroke.An example case is link command. In 4.11.0 we added ctrl+k keystroke in addition to already existing ctrl+l.
What are the options?
asArray
(orreturnMultiple
or something like that) parameter that tells that the function should return an array. (We can't change currently returned value for backward compatibility)editor.getCommandKeystrokes
(note plural form).Looking at above I'm more keen towards additional argument. Adding an extra function will further bloat our docs.
The text was updated successfully, but these errors were encountered: