diff --git a/src/components/player/InputBox.jsx b/src/components/player/InputBox.jsx index 9d860f8..c100c27 100644 --- a/src/components/player/InputBox.jsx +++ b/src/components/player/InputBox.jsx @@ -69,12 +69,19 @@ export default function ({ currentWindow, inputType, sendMessage }) { } } + const placeholder = { + char: 'Press any key', + line: ' > ' + } + return ( setInputText(value)} + placeholder={placeholder[inputType]} + autofocus + onInput={({ target: { value } }) => setInputText(value)} type='text' /> ) }