Repository navigation
v0.3.1
键盘被卡住时也能输入 / Input when keyboard events are blocked
当系统里有卡住的键盘事件监听(event tap)时,合成的按键送不到应用。v0.3.1 新增不经过键盘事件的输入方式:
When a stuck event tap swallows synthetic key events, v0.3.1 adds input paths that skip the keyboard event stream:
xyzlcu insert "App" [--window T] "文字":用辅助功能在焦点处插入(AXSelectedText),写完读回核对 / insert at the caret via Accessibility, verified by read-backxyzlcu settext "App" [--role R --title T --window W] "文字":整体替换(AXValue)/ replace the whole valuexyzlcu value "App" [...]:读回元素的值 / read the value backxyzlcu menu "App" "文件>存储":按菜单路径按下菜单项,代替快捷键(中英文都可,文件|File)/ press a menu item by path instead of a shortcuttype --via auto|events|ax|paste:默认 auto,检测到卡住的键盘监听时自动改用辅助功能写值 / auto switches to Accessibility writes when a blocked keyboard tap is detectedxyzlcu check新增keyboardBlockedBy/checknow reportskeyboardBlockedBy--via paste:剪贴板 + 菜单「粘贴」,结束后恢复剪贴板 / clipboard + Edit>Paste menu, clipboard restored afterwards
限制:菜单动作需要应用处理事件队列,事件流整体卡住时可能不生效。详见 README「键盘被卡住时」。
Limitation: menu actions need the app to process its event queue and may not take effect while the whole pipeline is stuck. See "When keyboard events are blocked" in the README.
安装 / Install: curl -L -o x.zip https://github.com/brandy2015/XYZLCU/releases/download/v0.3.1/xyzlcu-macos-universal.zip && unzip -o x.zip -d ~/.local/bin