Skip to content

Commit

Permalink
Removed other restrictions on OSD for intro files
Browse files Browse the repository at this point in the history
  • Loading branch information
c21021 committed Nov 12, 2024
1 parent dd00fdf commit 928b1da
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions components/video/VideoPlayerView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -821,26 +821,22 @@ function onKeyEvent(key as string, press as boolean) as boolean
if not press then return false

if key = "down" and not m.top.trickPlayBar.visible
if not m.LoadMetaDataTask.isIntro
' Don't allow user to open menu prior to video loading
if not stateAllowsOSD() then return true
' Don't allow user to open menu prior to video loading
if not stateAllowsOSD() then return true

m.osd.visible = true
m.osd.hasFocus = true
m.osd.setFocus(true)
return true
end if
m.osd.visible = true
m.osd.hasFocus = true
m.osd.setFocus(true)
return true

else if key = "up" and not m.top.trickPlayBar.visible
if not m.LoadMetaDataTask.isIntro
' Don't allow user to open menu prior to video loading
if not stateAllowsOSD() then return true
' Don't allow user to open menu prior to video loading
if not stateAllowsOSD() then return true

m.osd.visible = true
m.osd.hasFocus = true
m.osd.setFocus(true)
return true
end if
m.osd.visible = true
m.osd.hasFocus = true
m.osd.setFocus(true)
return true

else if key = "OK" and not m.top.trickPlayBar.visible
' Don't allow user to open menu prior to video loading
Expand Down

0 comments on commit 928b1da

Please sign in to comment.