Skip to content

Virtual Keyboard #1691

Closed
Closed

Description

@ArtyP

Hello,
I'm currently supporting CEFSharp app. After updating from version 39 to 49 virtual keyboard does not appear any more. I have read all issues I had found and tried all possible combinations of them . No success.
The list of workarounds I have tried:

Then I have installed Visual Studio on tablet, build a WinForms example 49. But keyboard still does not appear. My question is, what should I do to make keyboard appear in this simple example.

System:

  • Lenovo miix 3 1030
  • CefSharp version 49.0
  • x86
  • Win10
  • WinForms

Steps will reproduce:
Start CefSharp.WinForms.Example on tablet.

In cefclient (from http://cefbuilds.com) keyboard works properly.

Activity

  1. amaitland commented on May 20, 2016

    @amaitland
    Member

    Then I have installed Visual Studio on tablet, build a WinForms example 49. But keyboard still does not appear. My question is, what should I do to make keyboard appear in this simple example.

    Does the problem reproduce in 47.0.4? You might be better to rollback a version.

    In cefclient (from http://cefbuilds.com) keyboard works properly.

    Did you explicitly use 3.2623.1396?

  2. amaitland commented on May 20, 2016

    @amaitland
    Member

    Also make sure you don't have a physical keyboard plugged in when testing.

  3. ArtyP commented on May 23, 2016

    @ArtyP
    Author

    Thanx for your help. After rollback to 47.0.4 my project works perfectly fine for me.
    In CefSharp.WinForms.Example you need to set FocusHandler to null. Otherwise virtual keyboard appears but keypress does not work.
    Should we close the issue?

  4. changed the title [-]Virtual Keyborad[/-] [+]Virtual Keyboard[/+] on May 23, 2016
  5. added this to the 51.0.0 milestone on May 23, 2016
  6. amaitland commented on May 23, 2016

    @amaitland
    Member

    Should we close the issue?

    I will assign this to the 51.0.0 milestone, I'll let you know when a test build is available. If you have time I'd appreciate if you could re-test.

  7. ArtyP commented on May 23, 2016

    @ArtyP
    Author

    Sure.

  8. amaitland commented on May 30, 2016

    @amaitland
    Member

    The master branch has been upgraded to CEF 2704.1415 which is based on Chromium 51.0.2704.63. If you have time to download the source and test this out that would be much appreciated.

    A -pre release based on this version will likely be released in the next couple of weeks.

  9. amaitland commented on Jun 9, 2016

    @amaitland
    Member

    @ArtyP 51.0.0-pre01 packages are on Nuget.org, appreciate if you could test them out.

  10. modified the milestones: 53.0.0, 51.0.0 on Jul 17, 2016
  11. martin-k commented on Aug 26, 2016

    @martin-k

    We are developing a kiosk solution using Windows 10 and CefSharp but we have the same problem with the touch keyboard not appearing in 49 and 51. We tried downgrading to version 47 hoping that would fix it, but no luck. When using a Chrome browser, the keyboard appears.
    So we are wondering: Are we even initialising CEF correctly? What are the required settings in CEF for making the onscreen keyboard appear?

  12. amaitland commented on Aug 26, 2016

    @amaitland
    Member

    We are developing a kiosk solution using Windows 10 and CefSharp but we have the same problem with the touch keyboard not appearing in 49 and 51. We tried downgrading to version 47 hoping that would fix it, but no luck.

    Your using WinForms? If your using WPF then that's a totally different issue.

    When using a Chrome browser, the keyboard appears.

    It's not relevant to compare to Chrome in this instance, see https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md#cefsharp-vs-chromium-embedded-frameworkcef

    What are the required settings in CEF for making the onscreen keyboard appear?

    There are none, CefSharp has no control, it's just a wrapper. It either works or it doesn't.

  13. martin-k commented on Aug 26, 2016

    @martin-k

    Its a WinForms project.
    So if I understand you correctly I should be looking for solutions on the CEF forums instead? Sorry for posting in this thread then, it just sounded exactly like our problem. You can delete these comments if you wish.

  14. 9 remaining items

  15. hahrens commented on Aug 20, 2017

    @hahrens

    After a long time of looking for a solution, i finally found one that works for me and bring up the onscreen-keyboard as expected. Found it in a Youtube-Video:
    Add "disable-usb-kyboard-detect=1" as CommandLine-Argument

            CefSettings settings = new CefSettings();
            settings.CefCommandLineArgs.Add("disable-usb-keyboard-detect", "1");
            Cef.Initialize(settings);
    

    This brings up the Windows OnScreen-Keyboard every time i touch into an input field. Tested with Cef v47.0.4 and installed Chrome v60.0.3112.101.

  16. mismaiel62 commented on Aug 29, 2017

    @mismaiel62

    @hahrens Thanks mate.
    worked perfectly fine for me.

    Otherwise, I was launching keyboard process through JS (which is extra headache and degrades the performance also) before your solution.

    Thumps up (Y)

  17. amaitland commented on Jul 23, 2018

    @amaitland
    Member

    Tested with the latest MinimalExample which is based on version 65 and it's working correctly on my Surface Pro 1 running Windows 10. Those experiencing issues should use the disable-usb-keyboard-detect command line argument.

    https://github.com/cefsharp/CefSharp.MinimalExample

  18. avzuylen commented on Nov 28, 2018

    @avzuylen

    Hello, I'm using version 69. The onscreen keyboard correctly pops up when I touch an entry box. Problem is it ALSO pops up when I click in it with a mouse. I have tried 'disable-usb-keyboard-detect' set to '0' and '1' but no effect. Does anyone know a solution?

  19. amaitland commented on Nov 28, 2018

    @amaitland
    Member

    It's a known issue with Chrome version 69, the only option I'm aware of is to downgrade for the time being, it's resolved in version 70, so the fix will be included in the next CefSharp release which will be version 71.

    Search the Google product forms if you like, I was never able to find a working solution and just had to live with the problem.

  20. avzuylen commented on Nov 30, 2018

    @avzuylen

    Thanks, I have downgraded to version 65.0.1 where it works fine.
    It also works ok with version 67.0.0 but there I have the problem that session cookies are not cleared on exit (is this a known problem as well?). So I just stick to 65.0.1 for the time being.

  21. kafka-yu commented on Jan 17, 2019

    @kafka-yu

    Hello @avzuylen

    Thanks, I have downgraded to version 65.0.1 where it works fine.
    It also works ok with version 67.0.0 but there I have the problem that session cookies are not cleared on exit (is this a known problem as well?). So I just stick to 65.0.1 for the time being.

    I tried on CEF 68, but it seems doesn't work....

  22. amaitland commented on Jan 17, 2019

    @amaitland
    Member

    71.0.0-pre01 is out, you should try upgrading.

  23. akhudairy commented on Dec 28, 2020

    @akhudairy

    Tried it on 84.1.1 but it is not working for me

  24. fotoguy42 commented on Mar 28, 2022

    @fotoguy42

    Just tested with the MinimalExample on 99.2.90 and it does not work the majority of the time on a Surface Go original. I did get the keyboard to pop up once while randomly scrolling and tapping, and then the keyboard would popup regardless of if a text field had focus.
    Tested with the cefclient and tapping text fields does work.

  25. amaitland commented on Mar 28, 2022

    @amaitland
    Member

    Tested with the cefclient and tapping text fields does work.

    Did you test with the command line args listed at https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md#cefsharp-vs-chromium-embedded-frameworkcef

    cefclient.exe --multi-threaded-message-loop --no-sandbox
    
  26. amaitland commented on Mar 28, 2022

    @amaitland
    Member

    Please confirm you've tested the workaround listed at #1691 (comment)

  27. simonbuehler commented on Sep 22, 2023

    @simonbuehler

    same issue with 101 in a kiosk winforms app.
    i also tried the usb workaround but didn't help, any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions