-
Notifications
You must be signed in to change notification settings - Fork 121
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
Question - Keyboard events HTMLWindow with chromiumFx #34
Comments
Did you try PreviewKeyDown on the corresponding window? |
Yes, I tried on the example project too, and that event is never fired. The problem happens when I use wpf:HTMLWindow and the app with chromiumfx:ChromiumFxWebBrowserApp, the MainWindow PreviewKeyDown is never fired. Another question, Is there some way to inject keyboard events on chromiumFX IWebView, like the event InjectKeyboardEvent of MVVMAwesomium ? How can I get the current Instance of IWebView inside a ViewModel ? |
To inject keybord use See Example.ChromiumFX.Vue.SOP main window as an example how to get a reference to IWPFCfxWebWindow |
@renanpc , Regarding previewKeyDown, did you try KeyDown on ChromiumWebBrowser? By the way, which scenario you want to adress with this event? |
I tried, KeyDown and PreviewKeyDown and neither one works. I need use keys in some scenarios of my application, the most scenarios where I need to use are in development environment, because the software use some keys to simulate some machine behaviors. |
I'm trying to use the HTMLWindow.PreviewKeyDown event, but it is never fired.
Should I use another event to catch the pressed keys ?
Thanks !
The text was updated successfully, but these errors were encountered: