Giter Site home page Giter Site logo

Address Bar and Browser Focus Issue about doogie HOT 5 OPEN

cretz avatar cretz commented on August 27, 2024
Address Bar and Browser Focus Issue

from doogie.

Comments (5)

cretz avatar cretz commented on August 27, 2024

Added small commit to set a strong policy which includes click of CEF widget focus. But we still have a problem (as mentioned in #51) where the address bar on a new window looks like it has focus and even has a cursor, but key events are not sent to it when typed.

from doogie.

dwarfcrank avatar dwarfcrank commented on August 27, 2024

I think I found a way to reliably reproduce this issue, at least the part related to #51. I've tested these steps on Arch Linux with the i3 window manager (with focus-follows-mouse both on and off, as I originally thought it might have something to do with this).

Qt version is 5.9.1 and CEF binary distribution is 3.3163.1666.g052c2d2.

  1. Make sure the mouse cursor is hovering over the CEF widget, not any other part of the UI.
  2. Open a new page.
  3. Without moving the mouse, type something. Nothing should appear in the address bar, even though it seems to have focus.
  4. Move the mouse off the CEF widget without clicking anything and type something. Keyboard events should work again. Likewise, when moving the mouse back to the CEF widget, keyboard events won't be sent to the URL bar anymore.

from doogie.

cretz avatar cretz commented on August 27, 2024

Thanks! I'll work to replicate and see if I can solve when I get some time.

from doogie.

dwarfcrank avatar dwarfcrank commented on August 27, 2024

I looked some more into this and noticed that key events aren't sent at all if the CEF widget doesn't have any document loaded (which is the case with a new tab).

As a hacky test, I made BrowserStack::NewBrowser load a data URI if the given URL is empty, and it seems to work (see the commit). Though in this case the browser will also have focus in addition to the URL bar.

from doogie.

cretz avatar cretz commented on August 27, 2024

Thanks. The reason I haven't peeked yet is that i regularly use Doogie on Windows and my focus issues are different and aren't replicated in the same way.

from doogie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.