You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running cefclient on macOS Mojave 12.7 on an M1 MacBook Pro, and while using Offscreen Rendering to OpenGL (command line options: --off-screen-rendering-enabled, --shared-texture-enabled) pressing the following keys have undesired results:
d = Attempts to Enable Dictation
e = Shows the Emoji Selector View
f = Puts the current Window in fullscreen
To Reproduce
Steps to reproduce the behavior:
Compile CEF on macOS
Ensure the command line arguments are include --off-screen-rendering-enabled and --shared-texture-enabled
Navigate to Google.com
Click in the text input box to enter your search text
Enter the letters 'a', 's', 'k' -- all of these work as expected.
Now type the letter 'd' -- macOS will ask you if you wish to enable dictation (if it isn't already enabled)
Now type the letter 'e' -- macOS will show the Emoji and Symbols Character Viewer
Now type the letter 'f' -- the main CEF window will go fullscreen
Expected behavior
When you type the letters 'd', 'e', and 'f' without any modifiers, the text should be inserted into the currently selected text input field.
Screenshots
Versions
cef_binary_131.3.1+gcb062df+chromium-131.0.6778.109_macosarm64
macOS Mojave 12.7
MacBook Pro M1
Additional context
A clue to the solution: in the file text_input_client_osr_mac.mm
in the function HandleKeyEventBeforeTextInputClient:(NSEvent*)keyEvent
if you change the first instance of this code
magreenblatt
changed the title
OSR Enabled/Texture Sharing - Pressing 'd', 'e', and 'f' Enable Dictation, Emoji Selector, and Full Screen Mode
mac: osr: cefclient: Some key presses do not work as expected in text fields
Dec 12, 2024
Describe the bug
When running cefclient on macOS Mojave 12.7 on an M1 MacBook Pro, and while using Offscreen Rendering to OpenGL (command line options: --off-screen-rendering-enabled, --shared-texture-enabled) pressing the following keys have undesired results:
d = Attempts to Enable Dictation
e = Shows the Emoji Selector View
f = Puts the current Window in fullscreen
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When you type the letters 'd', 'e', and 'f' without any modifiers, the text should be inserted into the currently selected text input field.
Screenshots
Versions
cef_binary_131.3.1+gcb062df+chromium-131.0.6778.109_macosarm64
macOS Mojave 12.7
MacBook Pro M1
Additional context
A clue to the solution: in the file
text_input_client_osr_mac.mm
in the function
HandleKeyEventBeforeTextInputClient:(NSEvent*)keyEvent
if you change the first instance of this code
browser_->GetHost()->SendKeyEvent(keyEvent);
to
the problem no longer happens.
Does the problem reproduce with Google Chrome at the same version?
No.
The text was updated successfully, but these errors were encountered: