Skip to content

Commit 5a4c7c0

Browse files
authored
Fix: Fixed a crash in the Column Layout context menu (#16612)
1 parent af51d81 commit 5a4c7c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Files.App/Helpers/MenuFlyout/ContextFlyoutModelToElementHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ private static ICommandBarElement GetCommandBarButton(ContextMenuFlyoutItemViewM
295295
{
296296
button.KeyboardAccelerators.Add(item.KeyboardAccelerator);
297297
button.KeyboardAcceleratorTextOverride = item.KeyboardAcceleratorTextOverride;
298+
// Fixes #16193: VirtualKey does not support OEM keys (e.g "ò")
299+
button.KeyboardAcceleratorPlacementMode = Microsoft.UI.Xaml.Input.KeyboardAcceleratorPlacementMode.Hidden;
298300
}
299301
}
300302
}

0 commit comments

Comments
 (0)