Comments (5)
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.
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.
- Make sure the mouse cursor is hovering over the CEF widget, not any other part of the UI.
- Open a new page.
- Without moving the mouse, type something. Nothing should appear in the address bar, even though it seems to have focus.
- 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.
Thanks! I'll work to replicate and see if I can solve when I get some time.
from doogie.
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.
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)
- Dollar Sign in URL Breaking Blocker Rule HOT 1
- Tooltips Not Appearing
- Update Chrome to 63.0.3239 HOT 1
- Update to Qt 5.10 HOT 2
- Temporarily Disable SharedArrayBuffer
- Copy/Save Image in Context Menu HOT 1
- Update to Chrome 65.0.3325 HOT 1
- Stop Disabling SharedArrayBuffer in Doogie
- Update to Chrome 67.0.3396 HOT 1
- Support CSP Injection In Ad Blocking Rules HOT 1
- Ability To Override Single Top-Level Request Block When It Blocks Entire Page
- Update to Chrome 69.0.3497 HOT 1
- Address Bar Autocompleter Focus HOT 4
- Update to Chrome 71.0.3578
- Update to Chrome 73.0.3683
- Update to Chrome 78.0.3904.70
- Build error on QT 5.5 or 5.6 HOT 1
- Questions HOT 3
- Why is libcef only 135Mīŧ HOT 1
- the dock where the tabs are is not appearing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doogie.