Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Focus Issues with EO.WebBrowser 19.x Options
Stefan Koell
Posted: Monday, March 4, 2019 5:15:28 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 51
Hi,

the 19.x releases do not allow me to focus the web browser control by code. In my app I send keyboard events to fill forms and to ensure the browser has the input focus, I used to call EO.WinForm.WebControl.Focus() method. That worked great in the 18.x versions but not anymore.

I also tried EO.WinForm.WebControl.WebView.SetFocus(). There I can see very shortly that the textbox is focused but after half a second or so the focus is lost again.

Is this a known issue or is there a workaround?

Thanks!
eo_support
Posted: Monday, March 4, 2019 9:08:35 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,094
Hi,

We are not aware of such issues, can you create a test project and send it to us? See here for more details:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks
Stefan Koell
Posted: Tuesday, March 5, 2019 3:16:05 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 51
Thanks for looking into this. I just sent you a test project.
eo_support
Posted: Sunday, March 10, 2019 11:06:31 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,094
Thanks for the test project. This is just to let you know that we have resolved the issue on our end. The fix will be in our next build and we will reply here again when the new build is available.
eo_support
Posted: Friday, March 15, 2019 7:54:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,094
Hi,

This is just to let you know that the new build with the fix is out on our download page. Please take a look and let us know if it resolves the issue for you.

Thanks!
James
Posted: Monday, March 18, 2019 1:09:25 PM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2015
Posts: 104
I seem to now be experiencing this issue in the latest build. I'm working on analyzing it but so far I haven't determined the root cause. Is it possible to get a run down of what that test project was doing?
eo_support
Posted: Monday, March 18, 2019 2:09:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,094
Hi,

The test project for this particular problem was simply calling WebControl.Focus(). It supposes to set the focus to the first focusable element in the web page. However this did not work properly in the previous build.

The focus management actually is quite complicated because it involves many different scenarios such as tab into, shift tab into, setting focus programmatically (the original problem for this thread), activating the window and automatically setting focus (for example, if the WebView is in the only control in the form and user activate the form), automatically restoring focus to the WebControl (such as after closing a message box), etc. All these different scenarios each have Windows Forms and WPF variations. We have managed to make most of these cases work but there are a few cases we have not been able to find a clean solution yet. For example, after activating a WPF menu and restoring focus to the WebControl still does not work properly. But generally focus should work pretty well for most cases.

If you can provide more details on exactly what happens in your scenario we would be happy to investigate further to see what we can do.

Thanks!
James
Posted: Tuesday, March 19, 2019 8:46:26 AM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2015
Posts: 104
Okay, this definitely isn't the same issue. I'm running int o a problem where clicking into the webview isn't focusing a textbox clicked into most of the time. I'm still investigating, but I'll open a new thread for this once I have details.
eo_support
Posted: Tuesday, March 19, 2019 10:23:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,094
No problem. We will be happy to look further once you have the details.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.