Comments (13)
Original comment by Anonymous.
Comment 1. originally posted by leichtenfels on 2014-01-13T09:03:47.000Z:
I am having the same issue.
I just built JCEF according to the instructions (Windows 7 x64, JDK 7u45 x64). Had to add NULL as value for the windows_sandbox_info parameter of function calls to CefInitialize and CefExecuteProcess to get it compiled.
Caret behaviour is indeed very strange. Navigation with cursor keys has no effect, also, Shift + cursor key doesn't select text as usual. Home and End keys don't work, either. Mouse selection does work, however.
I suspect it's not just an issue with the caret not being displayed, but some deeper problem. Looks to me as if caret events are not passed to the underlying control.
I'm just evaluating JCEF for a project and, unfortunately, this issue is a showstopper for me. I tried to build the cefclient2010 project to investigate whether this might be a Windows issue but I'm getting a build error I can't resolve (MSB6006: cmd.exe exited with code 4; no helpful information on Google found on this).
If I can be of any assistance in resolving this problem please don't hesitate to contact me. I can also offer some development resources for JCEF in exchange for being able to use it (I'm a fairly competent Java developer with JNI experience and some experience in C and C++).
Thanks, Leo
from java-cef.
Comment 2. originally posted by magreenblatt on 2014-01-13T15:05:48.000Z:
@ commentcomment 1.: JCEF is currently demo/prerelease quality, so there will likely be a lot of showstopper issues :). In this particular case we may not be setting the focus correctly after creating the off-screen browser.
All of the source code for JCEF is available. Feel free to submit issues and/or patches for any problems that you run into. You can also ask questions at http://magpcss.org/ceforum.
from java-cef.
Original comment by Anonymous.
Comment 4. originally posted by arnaud.brochard on 2014-01-13T16:58:47.000Z:
I also suspect there's a collection of small issues :
-
I solved the tab situation with a simple canvas_.setFocusTraversalKeysEnabled(false)
-
Arrow keys are not responding on a Windows machine (probably some wrong/missing code in Java_org_cef_CefBrowser_1N_N_1SendKeyEvent, I'll try to debug it)
-
Cursor is still missing (no idea here)...
from java-cef.
Comment 5. originally posted by magreenblatt on 2014-04-11T16:27:05.000Z:
You can avoid this issue by using the windowed rendering mode supported by newer JCEF revisions.
from java-cef.
Comment 6. originally posted by magreenblatt on 2014-06-17T18:16:46.000Z:
from java-cef.
Original comment by Anonymous.
Comment 7. originally posted by arnaud.brochard on 2014-06-19T08:23:15.000Z:
Just rebuilt and tested latest revision (r90 along up-to-date CEF), confirmed the cursor issue is fixed in window rendering mode (but not in OSR mode, as indicated)
from java-cef.
Comment 8. originally posted by magreenblatt on 2014-11-20T20:11:28.000Z:
This can probably be fixed for off-screen rendering by calling CefBrowserHost::SendFocusEvent when the Java canvas receives focus.
from java-cef.
Original comment by Anonymous.
Comment 9. originally posted by philippe.defert on 2014-12-15T09:06:12.000Z:
I found a workaround
browser_ = client_.createBrowser(startURL, useOSR, isTransparent);
browerUI_ = browser_.getUIComponent();
browerUI_.addFocusListener(new FocusListener() {
@ Override
public void focusLost(FocusEvent e) {
browser\_.setFocus(false);
}
@ Override
public void focusGained(FocusEvent e) {
browser\_.setFocus(true);
}
});
}
You can put in org.cef.browser.CefBrowserOsr.java in createGLCanvas()
from java-cef.
Original comment by Rupert Smith (Bitbucket: rupertlssmith, GitHub: rupertlssmith).
Comment 10. originally posted by rupertlssmith on 2014-12-15T10:19:59.000Z:
To confirm, I just tried the .setFocus workaround in OSR mode on Linux, and it works perfectly. Thanks for that.
from java-cef.
Original comment by Anonymous.
Comment 11. originally posted by philip142au on 2015-01-17T04:02:38.000Z:
Hi, so I came across the same issue. Maybe the code has changed since your last comment, so I had to add in MainFrame.java around line 224:
browser\_ = client\_.createBrowser("http://www.google.com",
osrEnabled,
false,
requestContext);
browser\_.getUIComponent().addFocusListener(new FocusListener() {
@ Override
public void focusLost(FocusEvent e) {
browser\_.setFocus(false);
}
@ Override
public void focusGained(FocusEvent e) {
browser\_.setFocus(true);
}
});
from java-cef.
Duplicate of #180.
from java-cef.
- set state to "open"
from java-cef.
- changed state from "new" to "duplicate"
from java-cef.
Related Issues (20)
- Migrate issue tracker to GitHub HOT 1
- Scale factor on WIndows not always respected properly HOT 10
- i can input chinese HOT 1
- Linux, drop down menus don't work correctly HOT 1
- Missing feature getResourceResponseFilter HOT 3
- Window resize Browser update delay HOT 1
- onPreKeyEvent in keyboardHandler is never called
- Custom scheme registration fails
- Numerical keypad not working correctly
- On reducing window size very slowly, Browser UI is not Updated Properly
- Non-US keyboard layouts don't work properly in macOS in OSR mode
- Expose CefSslInfo on CefRequestHandler::onCertificateError
- CefFrame `evaluateJavascript` HOT 1
- 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
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.