Go to index / Go to protocols

treeland_shortcut_manager_v1 ↗

keyboard shortcut management

Warning! This protocol is EXPERIMENTAL and under active development. It may change at any time, including in backward-incompatible ways, without incrementing the interface major version and without prior notice. No compatibility guarantees of any kind are provided. Clients and compositors must track the upstream definition in treeland-protocols and must not rely on the current interface names, requests, events, or semantics remaining stable across releases.

treeland_shortcut_manager_v1
treeland_shortcut_manager_v1

Version 2

shortcut manager

This interface allows a client to get some shell's info.

treeland_shortcut_manager_v1
request register_shortcut_context(
    key: string,
    id: new_id<treeland_shortcut_context_v1>,
)

    register shortcut key

    The format of the shortcut key is 'Modify+Key', such as 'Ctrl+Alt+T'. If the format is wrong, the synthesizer will give a "format error". If the shortcut key is already registered, the compositor will give a "register error" and issue a destruction to the context.

    treeland_shortcut_manager_v1
    request destroy()
    DestructorAvailable since version 2

      destroy treeland_shortcut_manager_v1 object

      treeland_shortcut_manager_v1
      treeland_shortcut_context_v1

      Version 1

      client shortcut context

      This interface allows a client to listen a shortcut action.

      treeland_shortcut_context_v1
      enum error {
          register_failed = 1,
      }
      • register_failed — shortcut register failed
      treeland_shortcut_context_v1
      event shortcut()
        treeland_shortcut_context_v1
        request destroy()
        Destructor

          destroy the context object

          Destroy the context object.