Skip to content

Allow ShortcutListener for CKEditorTextField #65

@TobseF

Description

@TobseF

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!");
	}
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions