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

Deprecatedversion 2
shortcut manager

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

register_shortcut_context(key: string, id: new_id<treeland_shortcut_context_v1>)
Argument
Type
Description
keystring
idnew_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.

destroy()
destroy treeland_shortcut_manager_v1 object

treeland_shortcut_context_v1

Deprecatedversion 1
client shortcut context

This interface allows a client to listen a shortcut action.

destroy()
destroy the context object

Destroy the context object.

error { register_failed } 
Argument
Value
Description
register_failed1
shortcut register failed

Compositor Support

No compositor support found

SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT