Skip to content

Commit fec7cb1

Browse files
authored
Fixed an issue where right clicking in a directory when an item was selected would show the shell context menu items for the selected item instead of the current directory (#2171)
1 parent f211adc commit fec7cb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Files/BaseLayout.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ await App.Connection.SendMessageAsync(new ValueSet() {
407407

408408
public void RightClickContextMenu_Opening(object sender, object e)
409409
{
410+
ClearSelection();
410411
var shiftPressed = Window.Current.CoreWindow.GetKeyState(VirtualKey.Shift).HasFlag(CoreVirtualKeyStates.Down);
411412
SetShellContextmenu(BaseLayoutContextFlyout, shiftPressed, false);
412413
}

0 commit comments

Comments
 (0)