netcharm / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Sometimes cannot type after loading the WebKitBrowser #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there,

I have a VB project that makes use of WebKitBrowser as the main browser.
In some cases (50:50), whenever I open a new URL from a URL list stored in my 
dataTables, the browser does not allow me to type anything.

I need to change program, type anything in that other program, and then return 
to the WebKitBrowser and now I can type in the WebKitBrowser.

What is the cause of this?
Is it common?
Is there something that I miss?

Please help

Original issue reported on code.google.com by dothebe...@gmail.com on 22 Mar 2012 at 12:00

GoogleCodeExporter commented 8 years ago
Same here

Original comment by blixblog.suyash on 22 Mar 2012 at 2:34

GoogleCodeExporter commented 8 years ago
I believe it is a focus-issue, so at the document completed event try using 
(sender as WebKitBrowser).Focus();

Original comment by tsumalis96@gmail.com on 23 Mar 2012 at 12:21

GoogleCodeExporter commented 8 years ago
Hi Tsumali,

that focus seems to be working.
But just in case, I'll use my webkitbrowser for 2-3 days to check if this 
happens again before confirming that focus is the solution

Original comment by dothebe...@gmail.com on 23 Mar 2012 at 9:53

GoogleCodeExporter commented 8 years ago
OK if you fix your problem then change the status of this issue to Fixed please

Original comment by tsumalis96@gmail.com on 27 Mar 2012 at 7:54

GoogleCodeExporter commented 8 years ago
I have no idea how to set this to Fixed

Original comment by dothebe...@gmail.com on 27 Mar 2012 at 10:35

GoogleCodeExporter commented 8 years ago
I will do then. Have you fixed your problem? Confirm that the solution worked 
so that this issue is not open.

Original comment by tsumalis96@gmail.com on 28 Mar 2012 at 1:32

GoogleCodeExporter commented 8 years ago
In a few cases this problem still happens.
I am not sure why.
I need to find the similarities between the websites in which this problem 
arises first to report to you.

Original comment by dothebe...@gmail.com on 29 Mar 2012 at 1:19

GoogleCodeExporter commented 8 years ago
I am experiencing the same problem.
It's a little worse perhaps. Calling Focus() on the WebKitBrowser object brings 
the focus to the HTML element. The TAB key works fine to switch between 
textfield and button. But neighter typing nor RETURN key works.

I think the reason for the working TAB key is that WebKitBrowser.ProcessCmdKey 
implementation handles Keys.Tab seperately from other key events.

What's going on here? I'm currently working with OpenWebKitSharp 2.7.2 on .NET 
2.0 basis. The focus problem occurs on Windows 7 and XP systems.

Last hint: if I take away all Focus() calls it seams to work after i click into 
the window. So a dirty workarround for us could be to simulate a mouse click in 
the right position. Help greatly appriciated!

Thanks in advance

Sven

Original comment by sven.fre...@gmail.com on 17 Apr 2012 at 2:32

GoogleCodeExporter commented 8 years ago
With OpenWebKitSharp 2.8 this must have been fixed. The problem was indeed 
because of focus methods that were handled incorrectly inside WebUIDelegate.cs. 
Please confirm that with the new version the bug has been fixed

Original comment by tsumalis96@gmail.com on 17 Apr 2012 at 3:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Try downloading the whole pack and running the example project

Original comment by tsumalis96@gmail.com on 17 Apr 2012 at 7:03

GoogleCodeExporter commented 8 years ago
Thanks a lot for your support! I confirm that the problem has vanished with the 
new version.

Original comment by sven.fre...@gmail.com on 17 Apr 2012 at 7:08

GoogleCodeExporter commented 8 years ago
OK Issue closed

Original comment by tsumalis96@gmail.com on 18 Apr 2012 at 1:23