|
Rank: Advanced Member Groups: Member
Joined: 1/5/2015 Posts: 60
|
Hi We've discovered an issue with typing special characters in the WebBrowser. On a Danish keyboard we can't type "~" and related ã, ñ etc. in the WebBrowser. The thing is, with a Danish keyboard layout, you type "~" using the right "Alt" (Or "Ctrl" + left "Alt") and the button located left of "Enter". See this image: http://prntscr.com/8mv5arTo reproduce this add Danish as a language in Windows and use a Danish keyboard layout. This issue is reproduced with the latest build, 2015.2.65.0. Hope you can help.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
Please try to set the WebControl's AutoProcessCmdKey to false and see if it resolves the issue for you. When this property is true, it automatically route special keyboard events (such as when the alt is down) occured inside the browser engine to the .NET side so that the .NET side shortcut can be triggered (for example, hot key for a menu item). However this can cause problem for your case. So you can set this property to false to avoid such problem. If you must have shortcut keys on your .NET side, you can use WebView.Shortcuts to achieve that.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/16/2015 Posts: 9
|
Excellent, that solved my problem.
If we need shortcuts we'll use WebView.Shortcuts then :)
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 1/5/2015 Posts: 60
|
Worked great.
Thanks :)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Great. Glad to hear that it works for you! Please feel free to let us know if there is anything else.
|
|
Rank: Newbie Groups: Member
Joined: 12/7/2017 Posts: 9
|
Where can I find this option in the 2018 release, I'm experiencing the same issue and I can't find the Property anywhere?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Siemens wrote:Where can I find this option in the 2018 release, I'm experiencing the same issue and I can't find the Property anywhere? Hi, This property is available both on the Windows Form's version and WPF version of the WebViewHost class (which is the base class for the corresponding WebControl class): https://www.essentialobjects.com/doc/eo.winform.webviewhost.autoprocesscmdkeys.aspxhttps://www.essentialobjects.com/doc/eo.wpf.webviewhost.autoprocesscmdkeys.aspxExactly which version you use depends on whether your application is Windows Forms or WPF. For example, if your application is WPF based, then you would use the WPF version of the WebControl class (full class name EO.Wpf.WebControl) and you would access this property on that class. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/7/2017 Posts: 9
|
Understood, that explains why I couldn't find it, because we are using the WebView directly. How do I navigate from the WebView to the WebControl?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Siemens wrote:Understood, that explains why I couldn't find it, because we are using the WebView directly. How do I navigate from the WebView to the WebControl? I am not aware that you would have problem if you use the WebView control directly. The WebControl is the control that performs additional special keyboard logic. The WebView on the other hand would just faithfully take whatever you type. Can you create a small test application and send the test application to us? See here for more details: https://www.essentialobjects.com/forum/test_project.aspxWe will look into it as soon as we have it.
|
|