mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Player: add message on the vm termination
This commit is contained in:
parent
e7c1384436
commit
7a58f92434
3 changed files with 41 additions and 13 deletions
|
|
@ -106,6 +106,11 @@ export default function InputBox ({
|
|||
}
|
||||
}
|
||||
|
||||
const noopHandler = (event) => {
|
||||
event.target.valut = ''
|
||||
event.preventDefault()
|
||||
}
|
||||
|
||||
const inputHandlers = {
|
||||
char: {
|
||||
maxlength: '1',
|
||||
|
|
@ -120,6 +125,11 @@ export default function InputBox ({
|
|||
onKeyDown: lineArrowHandler,
|
||||
onKeyPress: lineHandler,
|
||||
},
|
||||
finished: {
|
||||
placeholder: 'The program has finished',
|
||||
onKeyDown: noopHandler,
|
||||
onKeyPress: noopHandler,
|
||||
},
|
||||
}
|
||||
|
||||
const enterFullscreen = () =>
|
||||
|
|
@ -134,6 +144,6 @@ export default function InputBox ({
|
|||
autocomplete='off'
|
||||
onDblClick={enterFullscreen}
|
||||
onInput={({ target: { value } }) => setInputText(value)}
|
||||
type='search' />
|
||||
type='text' />
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue