Skip to content

Commit

Permalink
fix(tests): When_Ctrl_Delete_Undo_Redo on macOS/skia
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Nov 4, 2024
1 parent 8547cbd commit 3e1c56c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3498,7 +3498,9 @@ public async Task When_Ctrl_Delete_Undo_Redo()
SUT.Focus(FocusState.Programmatic);
await WindowHelper.WaitForIdle();

SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.Delete, VirtualKeyModifiers.Control));
// on macOS it's option (menu/alt) and backspace to delete a word
var mod = OperatingSystem.IsMacOS() ? VirtualKeyModifiers.Menu : VirtualKeyModifiers.Control;
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.Delete, mod));
await WindowHelper.WaitForIdle();

SUT.Undo();
Expand Down

0 comments on commit 3e1c56c

Please sign in to comment.