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