mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-13 01:08:59 +08:00
(MainWindow): [Ctrl+Ins] copies selected filenames to clipboard.
This commit is contained in:
@@ -1194,6 +1194,15 @@ namespace GARbro.GUI
|
||||
CurrentDirectory.SelectAll();
|
||||
}
|
||||
|
||||
void CopyNamesExec (object sender, ExecutedRoutedEventArgs e)
|
||||
{
|
||||
var names = CurrentDirectory.SelectedItems.Cast<EntryViewModel>().Select (f => f.Name);
|
||||
if (names.Any())
|
||||
{
|
||||
Clipboard.SetText (string.Join ("\r\n", names));
|
||||
}
|
||||
}
|
||||
|
||||
void NextItemExec (object sender, ExecutedRoutedEventArgs e)
|
||||
{
|
||||
if (LookupActive)
|
||||
@@ -1442,5 +1451,6 @@ namespace GARbro.GUI
|
||||
public static readonly RoutedCommand SelectAll = new RoutedCommand();
|
||||
public static readonly RoutedCommand SetFileType = new RoutedCommand();
|
||||
public static readonly RoutedCommand NextItem = new RoutedCommand();
|
||||
public static readonly RoutedCommand CopyNames = new RoutedCommand();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user