Skip to content

[BUG] 激活 codeAction 菜单面板后,该面板无法响应快捷键 #2037

@bytemain

Description

@bytemain

描述你的问题(Describe the bug)

CleanShot 2022-12-04 at 17 34 22@2x

这个面板,无法响应 ArrowUp, ArrowDown, Enter 等快捷键。

补充信息(Additional context)

排查后发现,相关命令和快捷键都已经被 OpenSumi 注册了,但是当响应 Enter 快捷键的时候需要判断 "codeActionMenuVisible" 这个 ContextKey 的时候查不到该 key 的值:
CleanShot 2022-12-04 at 17 35 40@2x

CleanShot 2022-12-04 at 17 36 28@2x

还有一个疑点,该 dom 节点在 monaco-editor 之外,可能因为这个原因导致没有取到 context-key

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions