From 928b1da0c04cea482b10f589839cfdb05f4a30eb Mon Sep 17 00:00:00 2001 From: c21021 Date: Tue, 12 Nov 2024 17:37:57 -0500 Subject: [PATCH] Removed other restrictions on OSD for intro files --- components/video/VideoPlayerView.bs | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/components/video/VideoPlayerView.bs b/components/video/VideoPlayerView.bs index 472279fab..e6cb34996 100644 --- a/components/video/VideoPlayerView.bs +++ b/components/video/VideoPlayerView.bs @@ -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