mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
Add fullscreen mode
This commit is contained in:
parent
5cb2b9f1b2
commit
06125e1bee
1 changed files with 4 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ export default function ({ currentWindow, inputType, sendMessage }) {
|
||||||
line: ' > '
|
line: ' > '
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const enterFullscreen = _ =>
|
||||||
|
document.documentElement.requestFullscreen()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<input {...inputHandlers[inputType]}
|
<input {...inputHandlers[inputType]}
|
||||||
className='inputBox'
|
className='inputBox'
|
||||||
|
|
@ -82,6 +85,7 @@ export default function ({ currentWindow, inputType, sendMessage }) {
|
||||||
placeholder={placeholder[inputType]}
|
placeholder={placeholder[inputType]}
|
||||||
autofocus
|
autofocus
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
onDblClick={enterFullscreen}
|
||||||
onInput={({ target: { value } }) => setInputText(value)}
|
onInput={({ target: { value } }) => setInputText(value)}
|
||||||
type='search' />
|
type='search' />
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue