mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
InputBox: disable on Game Over
This commit is contained in:
parent
6b03a1ea21
commit
2ae3d64039
1 changed files with 1 additions and 7 deletions
|
|
@ -106,11 +106,6 @@ export default function InputBox ({
|
|||
}
|
||||
}
|
||||
|
||||
const noopHandler = (event) => {
|
||||
event.target.valut = ''
|
||||
event.preventDefault()
|
||||
}
|
||||
|
||||
const inputHandlers = {
|
||||
char: {
|
||||
maxlength: '1',
|
||||
|
|
@ -127,8 +122,7 @@ export default function InputBox ({
|
|||
},
|
||||
finished: {
|
||||
placeholder: 'The program has finished',
|
||||
onKeyDown: noopHandler,
|
||||
onKeyPress: noopHandler,
|
||||
disabled: true,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue