Hi,
How ca I suppress the output of the “Enter” key on this editor?
This code doesn’t work:
richTextEditor.addKeyDownHandler(new KeyDownHandler() {
public void onKeyDown(KeyDownEvent event) {
if (KeyNames.ENTER.equals(EventHandler.getKey())) {
event.cancel();
}
}
});
Thanks.