COSMIC atspi

atspi 无障碍协议

此协议提供了 at-spi2-core 库中 AtspiDevice 的相对直接的映射,因此可以为其添加 Wayland 后端。

这为屏幕阅读器快捷键绑定提供了一种工作方式。

这是在更好的协议可用之前的临时解决方案。

atspi 管理器全局对象

用于添加按键捕获和监控按键输入的管理器。

destroy()
销毁全局对象

所有仍处于活动状态的捕获将被禁用。

add_key_grab(mods: uint, virtual_mods: array, key: uint)
参数
类型
描述
modsuint
modifiers
virtual_modsarray
keycodes of virtual modifiers
keyuint
keycode
添加按键组合的捕获

捕获给定的按键组合,使其不会被发送到客户端。

remove_key_grab(mods: uint, virtual_mods: array, key: uint)
参数
类型
描述
modsuint
modifiers
virtual_modsarray
keycodes of virtual modifiers
keyuint
keycode
移除按键组合的捕获

禁用通过 add_key_grab 添加的捕获。

grab_keyboard()
捕获键盘

捕获键盘,使按键输入不会被发送到客户端。

ungrab_keyboard()
取消捕获键盘

禁用通过 grab_keyboard 添加的捕获。

key_events_eis(fd: fd)
参数
类型
描述
fdfd
eis file descriptor
获取 eis socket fd

生成一个可与 libei 配合使用的 fd,用于监控键盘输入。


合成器支持

未发现合成器支持

Copyright © 2024 System76

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Footer

© 2026 Wayland Explorer

本网站与 Wayland 官方项目无任何关联。网站所有内容均根据 Wayland 协议 XML 文件自动生成。

本网站使用的 Visual Studio Code - Codicons 遵循 CC BY 4.0 许可。