Modify to avoid to blur while composing (#775)
This commit is contained in:
parent
c4dbb7ca45
commit
2bb95f0651
@ -25,6 +25,9 @@ export class ProjectName extends Component<Props> {
|
||||
private handleKeyDown = (e: React.KeyboardEvent<HTMLElement>) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
if (e.nativeEvent.isComposing || e.keyCode === 229) {
|
||||
return;
|
||||
}
|
||||
e.currentTarget.blur();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user