|
|
|
@ -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);
|
|
|
|
|