Only lowercase input

This commit is contained in:
Daniel Kluge 2021-12-16 12:01:59 +01:00
parent b3a6b836e4
commit 47d9dabf9a
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,8 @@ const REPLInput: NextPage<REPLInputParams> = ({historyCallback, inputRef}) => {
const [justTabbed, setJustTabbed] = React.useState<number>(0);
const replinOnChange = (e: React.FormEvent<HTMLInputElement>) => {
const currentInput = (e.target as HTMLInputElement).value;
const currentInput = (e.target as HTMLInputElement).value.toLowerCase();
(e.target as HTMLInputElement).value = currentInput;
const suggest = commandCompletion(currentInput);
setCurrentCmd(suggest);
if (suggest.length === 0) suggest.push("");

1
next-env.d.ts vendored
View File

@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited