Skip to content

Linux: cefclient run with --use-native, inputs don't reliably receive focus #4143

@drc-jharrington

Description

@drc-jharrington

Describe the bug
I'm launching cefclient on Ubuntu 24.04 and when clicking inputs sometimes the input doesn't actually receive focus. Focus seems to be going up to the address bar input.

Using this html file:

<!DOCTYPE html> <html> <body> <span id="active-focus">?</span> <br /> <input id="input1" /> <input id="input2" /> <script> setInterval(() => { document.querySelector("#active-focus").textContent = document.activeElement?.tagName + ' ' + document.activeElement?.id; }, 50); </script> </body> </html>

To Reproduce
Steps to reproduce the behavior:

  1. Run ./cefclient --use-native --use-alloy-style --ozone-platform=x11
  2. Navigate to the test html file above
  3. Click around between the inputs and the background
  4. Sometimes after clicking an input, focus goes up to the address bar (typing text goes there instead of the input)

Expected behavior
Clicking inputs should focus the input

Screenshots

Screen.Recording.2026-03-27.152207.mp4

Versions (please complete the following information):

  • OS: Ubuntu 24.04
  • CEF Version: 7680/7727

Metadata

Metadata

Assignees

No one assigned

    Labels

    alloyRelated to the Alloy runtimebugBug reportcefclientRelated to the cefclient sample applinuxLinux platformnativeRelated to a native (non-Views) framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions