Only lowercase input
This commit is contained in:
parent
b3a6b836e4
commit
47d9dabf9a
@ -15,7 +15,8 @@ const REPLInput: NextPage<REPLInputParams> = ({historyCallback, inputRef}) => {
|
|||||||
const [justTabbed, setJustTabbed] = React.useState<number>(0);
|
const [justTabbed, setJustTabbed] = React.useState<number>(0);
|
||||||
|
|
||||||
const replinOnChange = (e: React.FormEvent<HTMLInputElement>) => {
|
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);
|
const suggest = commandCompletion(currentInput);
|
||||||
setCurrentCmd(suggest);
|
setCurrentCmd(suggest);
|
||||||
if (suggest.length === 0) suggest.push("");
|
if (suggest.length === 0) suggest.push("");
|
||||||
|
1
next-env.d.ts
vendored
1
next-env.d.ts
vendored
@ -1,5 +1,4 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/types/global" />
|
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
|
Loading…
Reference in New Issue
Block a user