InputBox: disable on Game Over

This commit is contained in:
He4eT 2023-05-28 02:26:21 +03:00 committed by Alexey
commit 2ae3d64039

View file

@ -106,11 +106,6 @@ export default function InputBox ({
} }
} }
const noopHandler = (event) => {
event.target.valut = ''
event.preventDefault()
}
const inputHandlers = { const inputHandlers = {
char: { char: {
maxlength: '1', maxlength: '1',
@ -127,8 +122,7 @@ export default function InputBox ({
}, },
finished: { finished: {
placeholder: 'The program has finished', placeholder: 'The program has finished',
onKeyDown: noopHandler, disabled: true,
onKeyPress: noopHandler,
}, },
} }