Introduce tools.keystrokeToArray method #856
Labels
changelog:api
A changelog entry should be put in the API section of the changelog.
status:confirmed
An issue confirmed by the development team.
target:major
Any docs related issue that should be merged into a major branch.
type:feature
A feature request.
Milestone
Are you reporting a feature request or a bug?
New feature
Provide detailed reproduction steps (if any)
Currently
keystrokeToString
method returns the whole keystroke as a string, like so:For a better reusability it should return keys as an array, without joining it to a string with a "+" or any other character.
The easiest solution to that is to add
CKEDITOR.tools.keystrokeToArray
method, that would return an object like the following:Then
keystrokeToString
should reuse it (by simply joining array members using+
).As a follow-up ticket I'd like to improve list of keys supported by
keystrokeToString
/keystrokeToArray
methods, as currently it supports very limited amount of keys, compared to a11yhelp dialog.The text was updated successfully, but these errors were encountered: