COSMIC atspi
此协议提供了 at-spi2-core 库中 AtspiDevice 的相对直接的映射,因此可以为其添加 Wayland 后端。
这为屏幕阅读器快捷键绑定提供了一种工作方式。
这是在更好的协议可用之前的临时解决方案。
用于添加按键捕获和监控按键输入的管理器。
add_key_grab(mods: uint, virtual_mods: array, key: uint)
参数 | 类型 | 描述 |
|---|---|---|
| mods | uint | modifiers |
| virtual_mods | array | keycodes of virtual modifiers |
| key | uint | keycode |
捕获给定的按键组合,使其不会被发送到客户端。
remove_key_grab(mods: uint, virtual_mods: array, key: uint)
参数 | 类型 | 描述 |
|---|---|---|
| mods | uint | modifiers |
| virtual_mods | array | keycodes of virtual modifiers |
| key | uint | keycode |
禁用通过 add_key_grab 添加的捕获。
合成器支持
Copyright
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.