import FilledInput from '@material-ui/core/FilledInput'; import FormControl from '@material-ui/core/FormControl'; import InputLabel from '@material-ui/core/InputLabel'; import { useEffect, useRef, useState } from 'react'; import { v4 as uuid } from 'uuid'; function Keybind(props: { keyName: string; onClick?: () => any; }) { return {props.keyName}; } var keyBlacklist = [ 'Shift', 'Control', 'Alt', 'Meta', ]; var keyMap = { ' ': 'Space', }; export default function KeybindSelector(props: { label: string; value: string[]; onChange?: (newValue: string[]) => any; }) { var [inputID, _setInputID] = useState(uuid()); function KeybindSelectorInner() { return