public override bool Execute(WindowState state)
 {
     if (!KeyboardNavigation.ClipAreaActive() && !KeyboardNavigation.TrackHeadActive())
     {
         return(KeyboardNavigation.FocusFirstVisibleItem(state));
     }
     else
     {
         return(KeyboardNavigation.SelectDownTrack());
     }
 }
Beispiel #2
0
 public override bool Execute(ActionContext actionContext)
 {
     if (!KeyboardNavigation.ClipAreaActive() && !KeyboardNavigation.TrackHeadActive())
     {
         return(KeyboardNavigation.FocusFirstVisibleItem());
     }
     else
     {
         return(KeyboardNavigation.SelectDownTrack());
     }
 }
Beispiel #3
0
 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));
     }
 }
Beispiel #4
0
        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);
        }