Exemplo n.º 1
0
 private void FListKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Return && directoryView.SelectedItem != null)
     {
         var item = (FileItem)directoryView.SelectedItem;
         if (item.Info is DirectoryInfo)
         {
             SelectNode(item);
         }
     }
     if (e.Key == Key.BackSpace && Current != null && Current.Group != null)
     {
         SelectNode((FileItem)Current.Group.Tag);
     }
     if (e.Key == Key.F && e.Modifiers == ModifierKeys.Control && directoryView.CurrentCell != null)
     {
         directoryView.AddFilter(directoryView.CurrentCell, true);
     }
 }