Opened 13 years ago
Closed 11 years ago
#8619 closed New Feature (fixed)
Plugins need to be able to register own keystrokes
Reported by: | jjo | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
I am writing a custom style-like command plugin. I want to register a keystroke for accessibility. I can only do this by hacking into the editor's keystrokeHander.
var ctrlM = CKEDITOR.CTRL + "M".charCodeAt(0); editor.keystrokeHandler.keystrokes[ctrlM] = 'mycmd'; editor.keystrokeHandler.blockedKeystrokes[ctrlM] = 1;
An API like this would be nice:
var ctrlM = CKEDITOR.CTRL + "M".charCodeAt(0); editor.registerKeystroke(ctrlM, 'mycmd' /* optional bool 'block' */);
Change History (3)
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 13 years ago by
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
An interesting variation of/extension to this feature was mentioned in #721