pull/14/merge
xioxin 3 years ago committed by GitHub
commit 5b96d9d214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save