WebBrowserComponent keypress callback?


#1

I’d like to be able to intercept keyboard shortcuts when an embedded WebBrowserComponent has focus. It’s trivial to do this in Linux by adding a gtkWebKit key_press_event callback. I’ve no idea how difficult it might be for other platforms but is this something JUCE devs might consider adding in the future?


#2

This is related
https://pradeep1210.wordpress.com/2010/03/19/easy-way-to-add-keyboard-and-mouse-events-to-webbrowser-control/


#3

Although the webbrowser keyboard/focus issues could eventually be better handled in the ActiveX layer in a more general way.
I don’t know.


#4

I’m sure the JUCE devs could knock this out of the park in no time. My only real question at this point is whether they may consider adding such a callback so I don’t have to keep hacking the WebBrowserComponent myself :wink: