Rank: Newbie Groups: Member
Joined: 4/29/2015 Posts: 1
|
Enviroment: Win7 32 and 64. WebBrowser version: 3.0.112.0 .Net version 4.0
We recently purchased WebBrowser element to replace IE in our embedded win7 product. It uses a touch screen as its main form of interaction. We are having issues using the webbrowser component together with the on screen keyboard.
The issue is that if we touch a textfield in the browser, and we then touch the on screen keyboard then the textfield will loose focus (The browser will still have focus, but not the textfield). If we use a mouse to either press the textfield in the browser or we use a mouse to use the on screen keyboard then focus works fine. So the issue is only present when we use touch to both press the textfield in the browser and also use touch to press the on screen keyboard (OSK).
Have been able to replicate the issue using your tabbed browser example and the default win7 OSK. We then have no issue using the OSK to give text input to the adress bar but when we try to give keyboard focus to any element on the webpage then when we are able to give it keyboard focus initially but the element will loose focus when we press a button on the OSK.
Have done some testing and have found that if we listen on the webView's MouseDown event, then we can see that the browser detects a mousedown event when we touch the on screen keyboard right after touching the webView. Even though the on screen keyboard is not even in the same application / window space. This "click" is what makes the textfield loose its focus, as its like clicking a random place on the webpage. After the element has lost focus we can use "Tab" on the keyboard to give back focus to the correct element on the webpage.
|