Opened 12 years ago

Closed 10 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 12 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 12 years ago by Jakub Ś

An interesting variation of/extension to this feature was mentioned in #721

comment:3 Changed 10 years ago by Piotrek Koszuliński

Resolution: fixed
Status: confirmedclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy