public override bool Execute(WindowState state) { if (!KeyboardNavigation.ClipAreaActive() && !KeyboardNavigation.TrackHeadActive()) { return(KeyboardNavigation.FocusFirstVisibleItem(state)); } else { return(KeyboardNavigation.SelectDownTrack()); } }
public override bool Execute(ActionContext actionContext) { if (!KeyboardNavigation.ClipAreaActive() && !KeyboardNavigation.TrackHeadActive()) { return(KeyboardNavigation.FocusFirstVisibleItem()); } else { return(KeyboardNavigation.SelectDownTrack()); } }
static void SelectDown(ShortcutManagement.ShortcutArguments args) { if (KeyboardNavigation.ClipAreaActive()) { SendEventToInvokeShortcut(selectDownItem, args.context); } else if (KeyboardNavigation.TrackHeadActive()) { SendEventToInvokeShortcut(selectDownTrack, args.context); } else { KeyboardNavigation.FocusFirstVisibleItem(GetState(args)); } }
public override bool Execute(ActionContext actionContext) { if (KeyboardNavigation.TrackHeadActive()) { return(KeyboardNavigation.FocusFirstVisibleItem(actionContext.tracks)); } if (!KeyboardNavigation.ClipAreaActive()) { return(KeyboardNavigation.FocusFirstVisibleItem()); } var item = KeyboardNavigation.GetVisibleSelectedItems().LastOrDefault(); if (item != null) { SelectionManager.SelectOnly(item.parentTrack); } return(true); }