mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Modify to avoid to blur while composing (#775)
This commit is contained in:
parent
c4dbb7ca45
commit
2bb95f0651
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue