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
Fixed issues with hotkeys #42
Conversation
Seemed that the real problem was not so much with hot keys but with the selected prop of the instances. When we changed frames the watcher would always reset to false the instance select and that would cause some of the hotkeys for related to selection to stop working (like copy and paste). Please let me know if you are aware of any other hotkeys malfunctioning so I can dive deeper into them here.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
If we do want to - then let's make sure L175 is false to re-enable hotkeys
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
context of these events also potentially blocking hotkeys
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1) A user may click outside (not use close button) We need to propagate that event back up, and then call `close_share_dialog()` 2) Issue panel in of itself is not great reason, putting it closer to actual usage
Hey,
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I found a few more
userscript select was missing blur Please double check ok with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@PJEstrada I think this is ready for a fresh look when ready |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hey Anthony thanks for catching the onBlur issue :) I checked the code and its looking good. I added 2ce3b59 which just adds the delete hotkey in the global context so it still works if the mouse is not inside the canvas. I will wait for tests to pass and we can merge this to master |
Seemed that the real problem was not so much with hot keys but with the selected prop of the instances. When we changed frames the watcher would always reset to false the instance select and that would cause some of the hotkeys for related to selection to stop working (like copy and paste).
This was cause due to not updating the this.previous_current_frame value in the watcher. Now the select is working properly and the hotkeys are following
I also tested the w,a,s,d the space bar, the escape keys, numkeys 1-9 and they all seem to be working fine.
Please let me know if you are aware of any other hotkeys malfunctioning so I can dive deeper into them here.