Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Onscreen keyboard

Post Reply
Hitman
Posts: 73
Joined: Sat May 20, 2017 11:08 am

Onscreen keyboard

Post by Hitman »

Hi guys,
i have a custom browser built with the newest CEF,
any ideas how could i add an onscreen keyboard to it?

Many thanks!
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Onscreen keyboard

Post by salvadordf »

Hi,

I don't have a windows tablet/phone so I can't test that option but other CEF projects use command line switches to activate it.

https://github.com/cztomczak/cefpython/issues/57
https://github.com/cefsharp/CefSharp/issues/1691

Those web pages say that you should use :
  • --disable-usb-keyboard-detect
  • --touch-events=enabled
You can test those switches using the GlobalCEFApp.AddCustomCommandLine procedure before the GlobalCEFApp.StartMainProcess call like this :
  • GlobalCEFApp.AddCustomCommandLine('--disable-usb-keyboard-detect');
  • GlobalCEFApp.AddCustomCommandLine('--touch-events', 'enabled');
In case those switches don't work, take a look at this list :
https://peter.sh/experiments/chromium-c ... -switches/
Hitman
Posts: 73
Joined: Sat May 20, 2017 11:08 am

Re: Onscreen keyboard

Post by Hitman »

Hi!
thanks a lot!
is this a Chrome built in keyboard or is it the Windows system keyboard?
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Onscreen keyboard

Post by salvadordf »

I'm not sure but for the switch's name it looks like the Windows system keyboard.
Hitman
Posts: 73
Joined: Sat May 20, 2017 11:08 am

Re: Onscreen keyboard

Post by Hitman »

Yes,
looks like it is the Windows built in keyboard.
Post Reply