mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
mac: tests: Fix NOTREACHED with ViewsTextfieldTest.TextfieldKeyEvent
This commit is contained in:
@ -644,5 +644,10 @@ patches = [
|
||||
# mac: Keep bubble popups on-screen.
|
||||
# https://bugs.chromium.org/p/chromium/issues/detail?id=893292#c10
|
||||
'name': 'mac_platform_style_bubble_893292'
|
||||
},
|
||||
{
|
||||
# mac: Fix NOTREACHED with ViewsTextfieldTest.TextfieldKeyEvent.
|
||||
# https://bugs.chromium.org/p/chromium/issues/detail?id=1467329
|
||||
'name': 'mac_keyboard_conversion_1467329'
|
||||
}
|
||||
]
|
||||
|
13
patch/patches/mac_keyboard_conversion_1467329.patch
Normal file
13
patch/patches/mac_keyboard_conversion_1467329.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git ui/events/keycodes/keyboard_code_conversion_mac.mm ui/events/keycodes/keyboard_code_conversion_mac.mm
|
||||
index 0d8befe370520..93e324e5e3784 100644
|
||||
--- ui/events/keycodes/keyboard_code_conversion_mac.mm
|
||||
+++ ui/events/keycodes/keyboard_code_conversion_mac.mm
|
||||
@@ -939,7 +939,7 @@ DomKey DomKeyFromNSEvent(NSEvent* event) {
|
||||
return DomKeyFromKeyCode(event.keyCode);
|
||||
}
|
||||
default:
|
||||
- NOTREACHED_NORETURN();
|
||||
+ return ui::DomKey::NONE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user