Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard inputs don't work in html-overlay + linux #208

Closed
bgbnbigben opened this issue Apr 2, 2015 · 7 comments
Closed

keyboard inputs don't work in html-overlay + linux #208

bgbnbigben opened this issue Apr 2, 2015 · 7 comments
Assignees
Labels

Comments

@bgbnbigben
Copy link

Using an field inside the html-overlay plugin doesn't seem to accept input. On my linux64 machine each keystroke triggers an error similar to the following:

[0402/112706:ERROR:browser_main_loop.cc(234)] Gdk: IA__gdk_keymap_get_entries_for_keyval: assertion 'keyval != 0' failed

I haven't tested this on android nor iphone yet but I suspect this issue likely occurs on those platforms too.

@warrenseine
Copy link
Contributor

The error you've got looks related to your installed GTK version, which might be incompatible with the CEF framework we use.

  • Does this happen with other HTML elements?
  • Did you install the supported libraries as documented?
  • What's your operating system?

I haven't tested this on android nor iphone yet but I suspect this issue likely occurs on those platforms too.

I wouldn't expect that. On mobile platforms, we're using a completely different technology to render HTML content (webview vs. embedded browser).

@bgbnbigben
Copy link
Author

It happens with both <input> and <textarea>, whether or not they're subelements of a <form> or not.
I have both libgtk2.0-dev and libgtkglext1-dev installed on Ubuntu 14.04 -- though it's running under a virtualbox, which might be an issue. I also have cef_binary_3.1750.1638_linux64 installed as per the instructions in the README.

There are also two start-up log messages that I hadn't noticed but don't believe are part of the problem:

[0403/081811:ERROR:proxy_service_factory.cc(103)] Cannot use V8 proxy resolver in single process mode
[0403/081811:WARNING:proxy_service.cc(890)] PAC support disabled because there is no system implementation

@JMLX42 JMLX42 removed the invalid label May 6, 2015
@JMLX42
Copy link
Member

JMLX42 commented May 6, 2015

I confirm the bug does exist on Linux.

@bgbnbigben did you find a solution?

@JMLX42
Copy link
Member

JMLX42 commented May 9, 2015

Hello,

the fix is rather simple: we have to fill the CefKeyEvent::native_key_code and CefKeyEvent::unmodified_character properties like this:

keyEvent.windows_key_code = key;
keyEvent.native_key_code = key;
keyEvent.unmodified_character = key;

You have to do this in all keyboard callbacks (key down, key up, text input) in ChromiumApp.cpp. The fix will soon be on the dev branch.

@bgbnbigben
Copy link
Author

Hi there,

No, I didn't find a solution -- it didn't particularly bother me since Warren suggested it was a different technology to mobile (and I'm only required to target mobile for this project, though perhaps in the future we might also move to desktop). However, it seems you found a fix; great news! I currently only have an android build on hand so can't test this on linux, but shall clone the dev branch in a few days to confirm.

@JMLX42 JMLX42 changed the title html-overlay <input> doesn't work keyboard inputs don't work in html-overlay + linux May 10, 2015
@bgbnbigben
Copy link
Author

I don't believe this is a complete fix; for instance, the backspace button doesn't register with this fix.

@JMLX42
Copy link
Member

JMLX42 commented May 11, 2015

Correct. Some specific keys still don't work. Yet they work just fine on
Windows. This is still likely a Linux specific issue.
Le 11 mai 2015 09:01, "Ben Stott" notifications@github.com a écrit :

I don't believe this is a complete fix; for instance, the backspace button
doesn't register with this fix.


Reply to this email directly or view it on GitHub
#208 (comment).

citruslee pushed a commit to CitrusForks/minko that referenced this issue Jan 11, 2023
…'master'

Resolve "Update DevIL's library to its latest release."

Closes aerys#207 and aerys#208

See merge request aerys/smartshape-engine!202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants