In my vaadin13 project I use TextField. When enter key is pressed the TextField’s value is changed programmatically
Everything works fine in IE browser.
But when I use Korean characters and press enter key they do not work in Chrome browser.
How can I change value in Chrome browser.
I have the following Source:
[ CD01View.class ]
@Tag("cd-01-view")
@HtmlImport("cd-01-view.html")
@Setter
@Getter
public class CD01View extends PolymerTemplate<CD01View.CD01ViewModel> {
@Id("companyName")
private TextField companyName;
public interface CD01ViewModel extends TemplateModel{
}
public CD01View(){
this.companyName.setValueChangeMode(ValueChangeMode.EAGER);
this.companyName.addKeyUpListener(e -> {
if( e.getKey().getKeys().equals(Key.ENTER.getKeys()) ){
//When use Korean characters and press enter key next line do not work.
this.companyName.setValue("aaaaaaaaa");
}
});
}
}
[ cd-01-view.html ]
<!DOCTYPE html>
.....
<dom-module id="cd-01-view">
<template>
<style> .... </style>
<div>
<vaadin-text-field label="회사명" id="companyName"></vaadin-text-field>
</div>
</template>
....
</dom-module>
</html>