| Index: ui/events/test/cocoa_test_event_utils.mm
|
| diff --git a/ui/events/test/cocoa_test_event_utils.mm b/ui/events/test/cocoa_test_event_utils.mm
|
| index 6daae98361a396620eddcbdf91001811543ea5ae..35326dfc347209deab98410ff746eb1f5eaf1afd 100644
|
| --- a/ui/events/test/cocoa_test_event_utils.mm
|
| +++ b/ui/events/test/cocoa_test_event_utils.mm
|
| @@ -176,6 +176,12 @@ NSEvent* SynthesizeKeyEvent(NSWindow* window,
|
| // logic to support it.
|
| flags &= ~NSAlphaShiftKeyMask;
|
|
|
| + // Call sites may generate unicode character events with an undefined
|
| + // keycode. Since it's not feasible to determine the correct keycode for
|
| + // each unicode character, we use a dummy keycode corresponding to key 'A'.
|
| + if (dom_key.IsCharacter() && keycode == ui::VKEY_UNKNOWN)
|
| + keycode = ui::VKEY_A;
|
| +
|
| unichar character;
|
| unichar shifted_character;
|
| int macKeycode = ui::MacKeyCodeForWindowsKeyCode(
|
|
|