private void FileListView_PreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { foreach (var item in FileListView.SelectedItems) { OpenFile(item as FileEntryViewModel); } } else if (e.Key == Key.Escape) { if (!_toolWindow.IsDocked) { _toolWindow.Hide(); } } else if (e.Key != Key.Up && e.Key != Key.Down) { SearchFileTextBox.Focus(); } }
private void ClearFilePathsPattern_Click(object sender, RoutedEventArgs e) { SearchFileTextBox.Text = ""; RefreshSearchResults(true); SearchFileTextBox.Focus(); }