Page 1 of 1
Onscreen keyboard
Posted: Tue May 15, 2018 5:22 am
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!
Re: Onscreen keyboard
Posted: Tue May 15, 2018 7:55 am
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/
Re: Onscreen keyboard
Posted: Tue May 15, 2018 11:36 am
by Hitman
Hi!
thanks a lot!
is this a Chrome built in keyboard or is it the Windows system keyboard?
Re: Onscreen keyboard
Posted: Tue May 15, 2018 11:39 am
by salvadordf
I'm not sure but for the switch's name it looks like the Windows system keyboard.
Re: Onscreen keyboard
Posted: Tue May 15, 2018 11:40 am
by Hitman
Yes,
looks like it is the Windows built in keyboard.