I want to add an ctrl + Enter shortcut binding to the CKEditor. But it seems that the CKEditor consumes all key events. Is that supported in any way, or how could I implement this missing behavior?
public void initListener(){
cKEditorTextField.addShortcutListener(new CtrlEnterShortcut());
}
public class CtrlEnterShortcut extends ShortcutListener {
private CtrlEnterShortcut() {
super("CtrlEnter", KeyCode.ENTER, new int[] { ModifierKey.CTRL });
}
@Override
public void handleAction(Object sender, Object target) {
System.out.println("Hey, you did it!");
}
}
I want to add an ctrl + Enter shortcut binding to the CKEditor. But it seems that the CKEditor consumes all key events. Is that supported in any way, or how could I implement this missing behavior?