Comments (9)
Comment 1. originally posted by magreenblatt on 2014-01-22T16:40:35.000Z:
Thanks for the patch. Some comments:
- line 164:
- if(CefContext.isMacintosh() ) {
Style says this should be "if (CefContext.isMacintosh()) {". Same in other places.
- line 422:
- public void onTakeFocus(CefClient client, boolean next) {
- if( next ) {
-
backButton\_.requestFocus();
- }
- else {
-
goButton\_.requestFocus();
- }
- }
Instead of manually programming the tab order is there a way to pass the event to Java and have it focus the next control automatically?
- line 462:
- HWND handle = browser->GetHost()->GetWindowHandle();
- SetWindowPos(handle, NULL, 1, 1, width-1, height-1, SWP_NOZORDER | SWP_NOMOVE);
Why the 1 pixel offset?
- line 480:
- browser->GetHost()->SetFocus(enable == JNI_TRUE);
- browser->GetHost()->SendFocusEvent(enable == JNI_TRUE);
SetFocus is for windowed browsers and SendFocusEvent is for osr browsers. You shouldn't call both.
from java-cef.
Original comment by Anonymous.
Comment 2. originally posted by [email protected] on 2014-01-24T11:08:20.000Z:
Thanks for reviewing the patch.
Regarding your questions and comments:
1.) Yes, styling is fixed now (see issue #31)
2.) Yes, I've found a a way to do this. I changed the code to use
the FocusTraversalPolicy which is responsible for the traversal chain.
From this policy object I get the first/last object in the chain to pass
the focus over.
3.) Sorry that sliped in. This was only a testcase on my side and I've removed
the offset now.
4.) Thanks for the hint. I didn't knew that. I've added an if-clause to it.
See attached patch-file for my changes.
Please note that this patch file depends on the patch from issue comment 31..
from java-cef.
Original comment by Anonymous.
Comment 3. originally posted by [email protected] on 2014-01-27T08:25:15.000Z:
Sorry, but I forgot to add a java include to MainFrame.java.
So, here is a new version of the patch file.
from java-cef.
Comment 4. originally posted by magreenblatt on 2014-01-30T19:04:05.000Z:
Added in revision 22 with minor style and documentation changes changes.
I've disabled windowed rendering by default on Windows because I'm getting the following crash while resizing the window: http://magpcss.org/ceforum/viewtopic.php?f=6&t=10415. We'll need to fix this before enabling windowed rendering by default.
from java-cef.
Comment 5. originally posted by magreenblatt on 2014-02-20T17:13:34.000Z:
@ commentcomment 4.: The resize issue has been fixed by the CEF 1750 branch update. Revision 30 enables windowed mode by default.
from java-cef.
Original changes by Anonymous.
- set attachment to "2014-01-23_04-added_windowed_rendering_for_win.patch"
from java-cef.
Original changes by Anonymous.
- set attachment to "2014-01-27_04-added_windowed_rendering_for_win.patch"
from java-cef.
- set state to "open"
from java-cef.
- set state to "resolved"
from java-cef.
Related Issues (20)
- libwebp chromium vulnerability HOT 1
- Wrong scroll direction on Linux with OSR enabled. HOT 2
- Load html directly HOT 4
- Unwanted behavior - Ctrl+Wheel zooms the whole window now HOT 1
- How to configure version of libc compiled against on Linux? HOT 2
- GPU Error on Linux Aarch64 HOT 2
- Upgrade to Chromium 119 HOT 1
- Add CefBrowserSettings
- New chromium vulnerabilities (
- Character encoding in CefResourceHandler HOT 2
- I am encountering this error when opening a webpage. Google Chrome and Microsoft Edge are both working fine. Please fix this bug officially.
- resort :The date input box is in English
- Hope PermissionHandler support HOT 1
- Closing not working as expected HOT 3
- 请问什么时候可以支持javafx21
- CefApp.getInstance: Passing a flag with two '=' instances fails
- Crash when creating new subprocess HOT 1
- Can you disclose the PID of CefClient so that the pid can be killed when the rendering process cannot be released normally?
- disable-web-security flag not working
- Display exceptions when the browser background is transparent
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 java-cef.