[PATCH] virtual-keyboard: Add new virtual keyboard protocol

Dorota Czaplejewicz dorota.czaplejewicz at puri.sm
Sun May 20 23:12:02 UTC 2018

On Thu, 17 May 2018 18:53:10 +0200
Dorota Czaplejewicz <dorota.czaplejewicz at puri.sm> wrote:

> Provides the ability to emulate keyboards by applications. Complementary to input-method protocol.
> The interface is a mirror copy of wl_keyboard, with removed serials, and added seat binding.
> ---
> This proposal is another one needed by Purism to support on screen keyboards on a phone screen.
> Virtual-keyboard is a protocol to let applications send arbitrary keyboard events. The need for this protocol comes from the fact that the input-method protocol combines two separate input responsibilities. It currently deals both with text input and raw keyboard events. I hope to split input-method along this line into virtual-keyboard and the rest of input-method. I'm going to submit the updated input-method for review soon.
> Applications should be able to control both interfaces at the same time. A screen keyboard supporting autocorrect (input-method) still wants to send arrow keys (vityual-keyboard) correctly. Because of this, both kinds of events at minimum must be sent to the same seat. I made the seat binding explicitly done by the application, taking inspiration from text-input protocol, which assumes per-seat binding as well.
> Input welcome.
> Cheers,
> Dorota

Apart from the typo that Silvan spotted, I have also encountered the issue where the .c/.h generator complained about undefined key_state and keymap_format enums which are defined in wayland.xml. I'm not sure what the correct way to solve this - should they be copied into this protocol?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180521/1e45f562/attachment.sig>

More information about the wayland-devel mailing list