@@ -526,9 +526,9 @@ let dropdown_id = (sample_id: int): string =>
526526 "sample-dropdown-" ++ string_of_int(sample_id);
527527
528528/* Step into handler for sample context menu */
529- let step_into_sample =
530- (~parent, ~sample: Sample . t , ~ap_id: Id . t ): Ui_effect . t(unit) =>
531- parent(Probe (StepInto (sample, ap_id)));
529+ // let step_into_sample =
530+ // (~parent, ~sample: Sample.t, ~ap_id: Id.t): Ui_effect.t(unit) =>
531+ // parent(Probe(StepInto(sample, ap_id)));
532532
533533/* Context actions for a sample (Pin/Unpin, Step Into, etc.) */
534534let sample_context_actions =
@@ -557,26 +557,26 @@ let sample_context_actions =
557557 span(~attrs= [ Attr . classes([ "shortcut" ] )] , [ text("P" )] ),
558558 ] ,
559559 ),
560- /* Step Into action */
561- div(
562- ~attrs= [
563- Attr . classes([ "action-item" , "step-into-action" ] ),
564- Attr . on_pointerdown(_
565- /* Stop propagation to prevent parent wrapper's Focus action
566- from moving cursor back to the probe after we jump */
567- =>
568- Effect . Many ([
569- Effect . Stop_propagation ,
570- step_into_sample(~parent, ~sample, ~ap_id),
571- ] )
572- ),
573- ] ,
574- [
575- div(~attrs= [ Attr . classes([ "step-into-icon" ] )] , [] ),
576- text("Step into" ),
577- span(~attrs= [ Attr . classes([ "shortcut" ] )] , [ text("Enter" )] ),
578- ] ,
579- ),
560+ // / * Step Into action */
561+ // div(
562+ // ~attrs=[
563+ // Attr.classes(["action-item", "step-into-action"]),
564+ // Attr.on_pointerdown(_
565+ // /* Stop propagation to prevent parent wrapper's Focus action
566+ // from moving cursor back to the probe after we jump */
567+ // =>
568+ // Effect.Many([
569+ // Effect.Stop_propagation,
570+ // step_into_sample(~parent, ~sample, ~ap_id),
571+ // ])
572+ // ),
573+ // ],
574+ // [
575+ // div(~attrs=[Attr.classes(["step-into-icon"])], []),
576+ // text("Step into"),
577+ // span(~attrs=[Attr.classes(["shortcut"])], [text("Enter")]),
578+ // ],
579+ // ),
580580 ] ,
581581 ),
582582 ] ;
@@ -1011,19 +1011,19 @@ let key_handler =
10111011 print_endline("pin: no sample or ap_id" );
10121012 Many ([ Stop_propagation , Prevent_default ] );
10131013 }
1014- | D ("Enter" ) =>
1015- /* Step into the indicated sample */
1016- switch (indicated_sample(~ap_id, di), ap_id) {
1017- | (Some (sample ), Some (ap_id )) =>
1018- Many ([
1019- Stop_propagation ,
1020- Prevent_default ,
1021- step_into_sample(~parent, ~sample, ~ap_id),
1022- ] )
1023- | _ =>
1024- print_endline("step into: no sample or ap_id" );
1025- Many ([ Stop_propagation , Prevent_default ] );
1026- }
1014+ // | D("Enter") =>
1015+ // /* Step into the indicated sample */
1016+ // switch (indicated_sample(~ap_id, di), ap_id) {
1017+ // | (Some(sample), Some(ap_id)) =>
1018+ // Many([
1019+ // Stop_propagation,
1020+ // Prevent_default,
1021+ // step_into_sample(~parent, ~sample, ~ap_id),
1022+ // ])
1023+ // | _ =>
1024+ // print_endline("step into: no sample or ap_id");
1025+ // Many([Stop_propagation, Prevent_default]);
1026+ // }
10271027 | _ => Many ([ Stop_propagation ] )
10281028 };
10291029};
0 commit comments