Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Zhoucheng133 opened this issue Mar 7, 2024 · 0 comments
Open

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

Zhoucheng133 opened this issue Mar 7, 2024 · 0 comments

Comments

@Zhoucheng133
Copy link

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

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

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

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

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

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

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

No branches or pull requests

1 participant