Modify to avoid to blur while composing (#775)

pull/777/head
Sosuke Suzuki 5 years ago committed by GitHub
parent c4dbb7ca45
commit 2bb95f0651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save