Skip to content

快捷键影响输入框输入 #51

@Zhoucheng133

Description

@Zhoucheng133

如果快捷键和输入框出现冲突会出现无法在输入框输入的问题:

比如快捷键设置为空格,那么在所有的TextField中都无法输入空格

先前的版本^0.1.8相反,会出现既能输入又会执行快捷键

现在可行的办法是使用^0.1.8版本,根据焦点判定是否执行快捷键方法:

await hotKeyManager.register(
  toggle,
  keyDownHandler: (hotKey) {
    if(!textController.hasFocus){
      // 执行快捷键指令
    }
  },
);

希望可以在输入的时候判断是否触发快捷键,或者添加回掉函数判断是否要执行快捷键绑定的操作

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions