File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ public interface IModifiableCommandManager : IEnumerable<IRichCommand>
11
11
12
12
IRichCommand PasteItem { get ; }
13
13
IRichCommand DeleteItem { get ; }
14
+ IRichCommand OpenProperties { get ; }
14
15
}
15
16
}
Original file line number Diff line number Diff line change 2
2
// Licensed under the MIT License. See the LICENSE.
3
3
4
4
using System . Collections . Frozen ;
5
- using System . Collections . Immutable ;
6
5
7
6
namespace Files . App . Data . Commands
8
7
{
@@ -17,6 +16,7 @@ internal sealed class ModifiableCommandManager : IModifiableCommandManager
17
16
public IRichCommand None => ModifiableCommands [ CommandCodes . None ] ;
18
17
public IRichCommand PasteItem => ModifiableCommands [ CommandCodes . PasteItem ] ;
19
18
public IRichCommand DeleteItem => ModifiableCommands [ CommandCodes . DeleteItem ] ;
19
+ public IRichCommand OpenProperties => ModifiableCommands [ CommandCodes . OpenProperties ] ;
20
20
21
21
public ModifiableCommandManager ( )
22
22
{
@@ -35,6 +35,9 @@ public ModifiableCommandManager()
35
35
[ CommandCodes . DeleteItem ] = new ModifiableCommand ( Commands . DeleteItem , new ( ) {
36
36
{ KeyModifiers . Shift , Commands . DeleteItemPermanently }
37
37
} ) ,
38
+ [ CommandCodes . OpenProperties ] = new ModifiableCommand ( Commands . OpenProperties , new ( ) {
39
+ { KeyModifiers . Shift , Commands . OpenClassicProperties }
40
+ } ) ,
38
41
} . ToFrozenDictionary ( ) ;
39
42
}
40
43
}
Original file line number Diff line number Diff line change @@ -490,10 +490,10 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(
490
490
IsVisible = itemsSelected ,
491
491
IsPrimary = true ,
492
492
} . Build ( ) ,
493
- new ContextMenuFlyoutItemViewModelBuilder ( Commands . OpenProperties )
493
+ new ContextMenuFlyoutItemViewModelBuilder ( ModifiableCommands . OpenProperties )
494
494
{
495
495
IsPrimary = true ,
496
- IsVisible = Commands . OpenProperties . IsExecutable
496
+ IsVisible = ModifiableCommands . OpenProperties . IsExecutable
497
497
} . Build ( ) ,
498
498
new ContextMenuFlyoutItemViewModelBuilder ( Commands . OpenParentFolder ) . Build ( ) ,
499
499
new ContextMenuFlyoutItemViewModelBuilder ( Commands . PinFolderToSidebar )
Original file line number Diff line number Diff line change 243
243
AccessKey=" O"
244
244
AccessKeyInvoked=" AppBarButton_AccessKeyInvoked"
245
245
AutomationProperties.AutomationId=" InnerNavigationToolbarPropertiesButton"
246
- Command=" {x:Bind Commands .OpenProperties, Mode=OneWay}"
247
- IsEnabled=" {x:Bind Commands .OpenProperties.IsExecutable, Mode=OneWay}"
248
- KeyboardAcceleratorTextOverride=" {x:Bind Commands .OpenProperties.HotKeyText, Mode=OneWay}"
249
- Label=" {x:Bind Commands .OpenProperties.Label}"
246
+ Command=" {x:Bind ModifiableCommands .OpenProperties, Mode=OneWay}"
247
+ IsEnabled=" {x:Bind ModifiableCommands .OpenProperties.IsExecutable, Mode=OneWay}"
248
+ KeyboardAcceleratorTextOverride=" {x:Bind ModifiableCommands .OpenProperties.HotKeyText, Mode=OneWay}"
249
+ Label=" {x:Bind ModifiableCommands .OpenProperties.Label}"
250
250
LabelPosition=" Collapsed"
251
- ToolTipService.ToolTip=" {x:Bind Commands .OpenProperties.LabelWithHotKey, Mode=OneWay}" >
252
- <controls : ThemedIcon Style =" {x:Bind Commands .OpenProperties.ThemedIconStyle, Mode=OneTime}" />
251
+ ToolTipService.ToolTip=" {x:Bind ModifiableCommands .OpenProperties.LabelWithHotKey, Mode=OneWay}" >
252
+ <controls : ThemedIcon Style =" {x:Bind ModifiableCommands .OpenProperties.ThemedIconStyle, Mode=OneTime}" />
253
253
</AppBarButton >
254
254
255
255
<!-- (Divider) -->
You can’t perform that action at this time.
0 commit comments