From 2bb95f065155d7740b9a07c7ccfb7461f07210e0 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Mon, 17 Feb 2020 17:44:08 +0900 Subject: [PATCH] Modify to avoid to blur while composing (#775) --- src/components/ProjectName.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ProjectName.tsx b/src/components/ProjectName.tsx index 9696ab45..62cd6710 100644 --- a/src/components/ProjectName.tsx +++ b/src/components/ProjectName.tsx @@ -25,6 +25,9 @@ export class ProjectName extends Component { private handleKeyDown = (e: React.KeyboardEvent) => { if (e.key === "Enter") { e.preventDefault(); + if (e.nativeEvent.isComposing || e.keyCode === 229) { + return; + } e.currentTarget.blur(); } };