[PlayerPanel] MEDIA focus
This commit is contained in:
@@ -524,6 +524,10 @@ const PlayerPanel = ({
|
||||
return false;
|
||||
}, [panelInfo, sideContentsVisible]);
|
||||
|
||||
useEffect(() => {
|
||||
Spotlight.focus("player-tab-arrow");
|
||||
}, [sideContentsVisible]);
|
||||
|
||||
return (
|
||||
<TPanel
|
||||
isTabActivated={false}
|
||||
@@ -545,7 +549,10 @@ const PlayerPanel = ({
|
||||
noAutoPlay={cannotPlay}
|
||||
autoCloseTimeout={100000}
|
||||
onBackButton={onClickBack}
|
||||
spotlightDisabled={sideContentsVisible || panelInfo.modal}
|
||||
spotlightDisabled={
|
||||
(panelInfo?.shptmBanrTpNm !== "MEDIA" && sideContentsVisible) ||
|
||||
panelInfo.modal
|
||||
}
|
||||
onLoadedData={mediainfoHandler}
|
||||
onLoadedMetadata={mediainfoHandler}
|
||||
onDurationChange={mediainfoHandler}
|
||||
|
||||
Reference in New Issue
Block a user