MacOS系统下VSCode的ctrl+cmd+左右箭头快捷键失效问题
Ctrl+Cmd+左右箭头快捷键失效,上下箭头组合正常工作
键盘快捷键ctrl+cmd+left和ctrl+cmd+right无法触发功能,但ctrl+cmd+up/ctrl+cmd+down可以正常使用。
ctrl+cmd+up的键盘事件日志
\ Keyboard event cannot be dispatched / Received keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl') \ Keyboard event cannot be dispatched in keydown phase. / Soft dispatching keyboard event \ Keyboard event cannot be dispatched / Received keydown event - modifiers: [ctrl,meta], code: MetaLeft, keyCode: 91, key: Meta | Converted keydown event - modifiers: [ctrl,meta], code: MetaLeft, keyCode: 57 ('Meta') \ Keyboard event cannot be dispatched in keydown phase. / Soft dispatching keyboard event | Resolving ctrl+meta+[ArrowUp] \ From 2 keybinding entries, no when clauses matched the context. / Received keydown event - modifiers: [ctrl,meta], code: ArrowUp, keyCode: 38, key: ArrowUp | Converted keydown event - modifiers: [ctrl,meta], code: ArrowUp, keyCode: 16 ('UpArrow') | Resolving ctrl+meta+[ArrowUp] \ From 2 keybinding entries, no when clauses matched the context. + Ignoring single modifier ctrl due to it being pressed together with other keys.
ctrl+cmd+right的键盘事件日志
/ Soft dispatching keyboard event \ Keyboard event cannot be dispatched / Received keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl') \ Keyboard event cannot be dispatched in keydown phase. / Soft dispatching keyboard event \ Keyboard event cannot be dispatched / Received keydown event - modifiers: [ctrl,meta], code: MetaLeft, keyCode: 91, key: Meta | Converted keydown event - modifiers: [ctrl,meta], code: MetaLeft, keyCode: 57 ('Meta') \ Keyboard event cannot be dispatched in keydown phase. + Ignoring single modifier ctrl due to it being pressed together with other keys.
对比两份日志可见,左右箭头的按键事件完全没有被系统捕获派发,而上下箭头的事件能正常被捕获。由于该快捷键在其他macOS用户账号下可正常使用,推测当前用户的系统或应用存在配置异常。
内容的提问来源于stack exchange,提问作者entozoon
相关产品推荐
相关产品推荐

