Skip to content

Commit a9bac32

Browse files
committed
ModifiableCommand
1 parent 2ae0d75 commit a9bac32

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Files.App/Data/Commands/Manager/IModifiableCommandManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ public interface IModifiableCommandManager : IEnumerable<IRichCommand>
1111

1212
IRichCommand PasteItem { get; }
1313
IRichCommand DeleteItem { get; }
14+
IRichCommand OpenProperties { get; }
1415
}
1516
}

src/Files.App/Data/Commands/Manager/ModifiableCommandManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License. See the LICENSE.
33

44
using System.Collections.Frozen;
5-
using System.Collections.Immutable;
65

76
namespace Files.App.Data.Commands
87
{
@@ -17,6 +16,7 @@ internal sealed class ModifiableCommandManager : IModifiableCommandManager
1716
public IRichCommand None => ModifiableCommands[CommandCodes.None];
1817
public IRichCommand PasteItem => ModifiableCommands[CommandCodes.PasteItem];
1918
public IRichCommand DeleteItem => ModifiableCommands[CommandCodes.DeleteItem];
19+
public IRichCommand OpenProperties => ModifiableCommands[CommandCodes.OpenProperties];
2020

2121
public ModifiableCommandManager()
2222
{
@@ -35,6 +35,9 @@ public ModifiableCommandManager()
3535
[CommandCodes.DeleteItem] = new ModifiableCommand(Commands.DeleteItem, new() {
3636
{ KeyModifiers.Shift, Commands.DeleteItemPermanently }
3737
}),
38+
[CommandCodes.OpenProperties] = new ModifiableCommand(Commands.OpenProperties, new() {
39+
{ KeyModifiers.Shift, Commands.OpenClassicProperties }
40+
}),
3841
}.ToFrozenDictionary();
3942
}
4043
}

0 commit comments

Comments
 (0)