cefsharp / Questions-and-Support

Use this repository to ask CefSharp specific questions
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

SendKeys.Send not working on On-Screen Keyboard #57

Closed JaredDrakeZA closed 4 years ago

JaredDrakeZA commented 4 years ago

Hello! I need your help ...

I developed my very own On-Screen Keyboard component that is built-in with my own application, it has CEFSharp Web Browser in VB.NET app.

NOTE: I am using touch-screen to run the app without keyboard and mouse.

When loading my app with CEFSharp Web Browser, I used touch-screen to click on the username input and then clicked on a button via On-Screen Keyboard. It doesn't respond at all. Alternatively, I inserted the USB mouse and clicked on the username input and clicked on a button via On-Screen Keyboard, it just responded.

Is it something like browser focus issue ? Or what ?

Please help!

Many thanks! Jared

JaredDrakeZA commented 4 years ago

Don't worry about this, I managed to fix the focus issue between CEFSharp Web Browser and my own On-Screen Keyboard by adding the following code below:

appCEFSpBrowser.FocusHandler = Nothing

The above code is for Visual Basic .NET code.

I hope it helps others who are struggling with focus issue. I think your CEFSharp Web Browser needs to be sorted out, maybe add "TouchScreen" option to your component, when we set it to "true", it should be automatically forcing FocusHandler to null or Nothing. So that others won't struggle with this in the future.

This issue is closed by myself.

amaitland commented 4 years ago

Issue transferred as questions should be asked in this repository please.