Skip to content

Fix: 窗口内热键冲突#48

Open
yunkuangao wants to merge 10 commits intozclucas:Devfrom
yunkuangao:fix/edit-hotkey
Open

Fix: 窗口内热键冲突#48
yunkuangao wants to merge 10 commits intozclucas:Devfrom
yunkuangao:fix/edit-hotkey

Conversation

@yunkuangao
Copy link
Copy Markdown
Collaborator

问题:

在窗口内使用热键会同时产生三种效果(以宏指令编辑器为例F6):

  1. 执行单步调试(预期效果)
  2. 执行对应的按键宏(应该是非预期)
  3. 执行其他软件注册的热键(非预期)

希望达到:

在窗口内使用热键(以宏指令编辑器为例F6):

  1. 执行单步调试(预期效果)
  2. 不执行对应的按键宏(避免冲突)
  3. 不执行其他软件注册的热键(预期)

方式:

使用WindowHotkeyManager注册热键已经状态管理
将窗口需要使用的热键在对应的窗口属性中写入而非硬编码
在未来其他可能需要类似窗口热键的功能中提供通用性

现阶段快捷键还是使用判断值的方式,需要考虑是否是否使用变量来控制以避免硬编码问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant