@@ -36,7 +36,6 @@ import { ISourceLayer } from '@sofie-automation/blueprints-integration'
3636import { UIStudio } from '@sofie-automation/meteor-lib/dist/api/studios'
3737import { LIVE_LINE_TIME_PADDING } from '../Constants'
3838import * as RundownResolver from '../../../lib/RundownResolver'
39- import { SelectedElementsContext } from '../../RundownView/SelectedElementsContext'
4039
4140export const SegmentTimelineLineElementId = 'rundown__segment__line__'
4241export const SegmentTimelinePartElementId = 'rundown__segment__part__'
@@ -52,7 +51,6 @@ interface IProps {
5251 playlist : DBRundownPlaylist
5352 studio : UIStudio
5453 part : PartUi
55- onPartClick ?: ( part : PartUi , e : React . MouseEvent < HTMLDivElement > ) => void
5654 timeToPixelRatio : number
5755 onCollapseOutputToggle ?: ( layer : IOutputLayerUi , event : any ) => void
5856 collapsedOutputs : {
@@ -103,9 +101,6 @@ interface IState {
103101 highlight : boolean
104102}
105103export class SegmentTimelinePartClass extends React . Component < Translated < WithTiming < IProps > > , IState > {
106- static contextType = SelectedElementsContext
107- declare context : React . ContextType < typeof SelectedElementsContext >
108-
109104 constructor ( props : Readonly < Translated < WithTiming < IProps > > > ) {
110105 super ( props )
111106
@@ -250,19 +245,6 @@ export class SegmentTimelinePartClass extends React.Component<Translated<WithTim
250245 }
251246 }
252247
253- private handleClick = ( e : React . MouseEvent < HTMLDivElement > ) => {
254- this . props . onPartClick ?.( this . props . part , e )
255-
256- // Only toggle selection if Alt/Option is pressed
257- if ( e . altKey && this . context ) {
258- e . preventDefault ( )
259- this . context . clearAndSetSelection ( {
260- type : 'partInstance' ,
261- elementId : this . props . part . instance . _id ,
262- } )
263- }
264- }
265-
266248 private highlightTimeout : NodeJS . Timer | undefined
267249
268250 private onHighlight = ( e : HighlightEvent ) => {
@@ -708,7 +690,6 @@ export class SegmentTimelinePartClass extends React.Component<Translated<WithTim
708690 role = "region"
709691 aria-roledescription = { t ( 'part' ) }
710692 aria-label = { this . props . part . instance . part . title }
711- onClick = { ( e ) => this . handleClick ( e ) }
712693 >
713694 { DEBUG_MODE && (
714695 < div className = "segment-timeline__debug-info" >
@@ -781,7 +762,6 @@ export class SegmentTimelinePartClass extends React.Component<Translated<WithTim
781762 'segment-timeline__part__nextline__label--thin' :
782763 ( this . props . autoNextPart || this . props . part . willProbablyAutoNext ) && ! this . state . isNext ,
783764 } ) }
784- onClick = { ( e ) => this . handleClick ( e ) }
785765 >
786766 { innerPart . invalid && ! innerPart . gap ? null : (
787767 < React . Fragment >
0 commit comments