Exemplo n.º 1
0
 public override bool Execute(ActionContext actionContext)
 {
     if (!KeyboardNavigation.ClipAreaActive() && !KeyboardNavigation.TrackHeadActive())
     {
         return(KeyboardNavigation.FocusFirstVisibleItem());
     }
     else
     {
         return(KeyboardNavigation.SelectDownTrack());
     }
 }
 public override bool Execute(WindowState state)
 {
     if (!KeyboardNavigation.ClipAreaActive() && !KeyboardNavigation.TrackHeadActive())
     {
         return(KeyboardNavigation.FocusFirstVisibleItem(state));
     }
     else
     {
         return(KeyboardNavigation.SelectDownTrack());
     }
 }
Exemplo n.º 3
0
 static void SelectRight(ShortcutManagement.ShortcutArguments args)
 {
     if (KeyboardNavigation.ClipAreaActive())
     {
         SendEventToInvokeShortcut(selectRightItem, args.context);
     }
     else if (KeyboardNavigation.TrackHeadActive())
     {
         SendEventToInvokeShortcut(unCollapseGroup, args.context);
     }
 }
Exemplo n.º 4
0
 static void SelectLeft(ShortcutManagement.ShortcutArguments args)
 {
     if (KeyboardNavigation.ClipAreaActive())
     {
         SendEventToInvokeShortcut(selectLeftItem, args.context);
     }
     else if (KeyboardNavigation.TrackHeadActive())
     {
         SendEventToInvokeShortcut(navigateLeft, args.context);
     }
 }
Exemplo n.º 5
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));
     }
 }
Exemplo n.º 6
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);
        }