-
Notifications
You must be signed in to change notification settings - Fork 80
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
绘制工具在拖拽过程中,交替切换 Shift, Space 键,表现不一致 #159
Comments
另外,拖拽过程中,按住 Alt 键,再按 Space 会触发浏览器窗口菜单,系统是 Windows。 |
首先非常感谢你提的 issue。 然后的话,第二个问题是无法处理,因为在 windows 系统中,alt + space 快捷键的优先级是高于浏览器的,即使用 event.preventDefault() 也无法阻止。 |
因为我是在 macOS 上开发的,macOS 是没问题的。 经测试,我确认是 windows 和 macOS 的按键行为有一点不一样。 windows 的 keyup 只执行了一次(shiftLeft);macOS 连续执行了两次(shiftLeft, shift + space)。 为了解决不同平台的兼容性,我会换个写法,一会我会把代码合上来。 |
这段话没看懂,究竟是哪个步骤在什么时候执行的 keyup,两次又分别是哪两次呢? |
说错了,按住 space 不放,然后再按住 shift,keydown 事件 |
步骤:
步骤:
The text was updated successfully, but these errors were encountered: