Treeland shortcut manager v1
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
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 |
|---|---|---|
| key | string | |
| id | new_id<treeland_shortcut_context_v1> |
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()
treeland_shortcut_context_v1
This interface allows a client to listen a shortcut action.
destroy()
Destroy the context object.
shortcut()
error { register_failed }
Argument | Value | Description |
|---|---|---|
| register_failed | 1 | shortcut register failed |
Compositor Support
Copyright
SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT