mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07: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 = {
|
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,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue