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

onPreKeyEvent in keyboardHandler is never called #444

Open
baltov opened this issue Apr 21, 2023 · 0 comments
Open

onPreKeyEvent in keyboardHandler is never called #444

baltov opened this issue Apr 21, 2023 · 0 comments
Labels
bug Bug report

Comments

@baltov
Copy link

baltov commented Apr 21, 2023

onPreKey event is never called when some key is pressed.

To Reproduce
Steps to reproduce the behavior:

  1. define keyboardhandler, attach it to client
  2. log a message when onPreKeyEvent is called
  3. log is not printed

client_ = cefApp_.createClient();
client_.addKeyboardHandler(keyboardHandler);
..........
@OverRide
public boolean onPreKeyEvent(CefBrowser browser, CefKeyEvent event, BoolRef is_keyboard_shortcut) {
log.info("OnPreKeyEvent: {}", event); /// Never called
return false
}

Expected behavior
onPreKeyEvent event to be used

@baltov baltov added the bug Bug report label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

1 participant