virtual-keyboard-unstable-v1

(index)

zwp_virtual_keyboard_v1

virtual keyboard

Interface
Version 1

The virtual keyboard provides an application with requests which emulate the behaviour of a physical keyboard.

This interface can be used by clients on its own to provide raw input events, or it can accompany the input method protocol.

zwp_virtual_keyboard_v1.keymap

keyboard mapping

Request
Since Version 1

Provide a file descriptor to the compositor which can be memory-mapped to provide a keyboard mapping description.

Format carries a value from the keymap_format enumeration.

ArgumentTypeDescription
formatuint

keymap format

fdfd

keymap file descriptor

sizeuint

keymap size, in bytes

zwp_virtual_keyboard_v1.key

key event

Request
Since Version 1

A key was pressed or released. The time argument is a timestamp with millisecond granularity, with an undefined base. All requests regarding a single object must share the same clock.

Keymap must be set before issuing this request.

State carries a value from the key_state enumeration.

ArgumentTypeDescription
timeuint

timestamp with millisecond granularity

keyuint

key that produced the event

stateuint

physical state of the key

zwp_virtual_keyboard_v1.modifiers

modifier and group state

Request
Since Version 1

Notifies the compositor that the modifier and/or group state has changed, and it should update state.

The client should use wl_keyboard.modifiers event to synchronize its internal state with seat state.

Keymap must be set before issuing this request.

ArgumentTypeDescription
mods_depresseduint

depressed modifiers

mods_latcheduint

latched modifiers

mods_lockeduint

locked modifiers

groupuint

keyboard layout

zwp_virtual_keyboard_v1.destroy

destroy the virtual keyboard keyboard object

Destructor Request
Since Version 1

EntryValueSinceDescription
no_keymap01

No keymap was set

zwp_virtual_keyboard_manager_v1

virtual keyboard manager

Interface
Version 1

A virtual keyboard manager allows an application to provide keyboard input events as if they came from a physical keyboard.

zwp_virtual_keyboard_manager_v1.create_virtual_keyboard

Create a new virtual keyboard

Request
Since Version 1

Creates a new virtual keyboard associated to a seat.

If the compositor enables a keyboard to perform arbitrary actions, it should present an error when an untrusted client requests a new keyboard.

ArgumentTypeDescription
seatobject<wl_seat>

idnew_id<zwp_virtual_keyboard_v1>

EntryValueSinceDescription
unauthorized01

client not authorized to use the interface

Copyright