#22

Daemon Mode and Auto-show Keyboard on Chromium Raspberry Pi

Openplloppiiopened 5y ago

Hi there!

I know this is kind of an old repository, but it is one of few that I found works perfectly for my Kiosk, Raspian Touchscreen setup.

I wanted to ask if developers here have ever tried using matchbox-keyboard along with a chromium-browser. Using the --daemon flag did not work for me, however I read some people had luck with that on Debian 9

I am trying to have the matchbox-keyboard auto show when selecting a webpage input box. I saw that there is this matchbox-keyboard-toggler, however, I have no idea how the chromium-browser can push events up to a system process or app.

I have actually seen this hot keyboard plugin call a system app successfully so I feel that I can develop a plugin that pushes input events up to the matchbox-keyboard daemon to toggle it.

An alternative would be some kind of gesture, that I can use to toggle the keyboard on my touchscreen. I see mentions of a gesture in the repository but I do not see any mentions of how to use it.

Any input would be greatly appreciated!

Activity

3
xlab5y ago

Hi, I think the only chance is to make XSendEvent call (or simply exec matchbox-keyboard-toggle) from a process that's listening for localhost connections. And make Chrome's page call that, or if you want it on any page, simply install a plugin in chrome that injects custom JS (like something monkey) for every text input.

@plloppii let me know if this explanation makes sense or you need an example :)

plloppii5y ago

@xlab That makes perfect sense! I'll try it out and let you know how it goes. Could you also explain what the -t, --gestures Enable gestures flag does on for the matchbox-keyboard binary? What kind of gestures do I need to do to trigger the keyboard?

xlab5y ago

@plloppii it's some magic that allows you to swipe across the keyboard to print space (swipe right) or backspace (swipe left), I probably need to check what are the other options.