Compatible with text composition system

pull/14/head
xioxin 3 years ago committed by GitHub
parent 1f2e543bdb
commit 03ae355a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,6 +16,10 @@ export const Input = ({
clearHistory,
}) => {
const onSubmit = async (event: React.KeyboardEvent<HTMLInputElement>) => {
if (event.isComposing) {
return;
}
const commands: [string] = history
.map(({ command }) => command)
.filter((command: string) => command);

Loading…
Cancel
Save