-
Notifications
You must be signed in to change notification settings - Fork 16
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
Copy doesn't work on first hotkey stroke #437
Comments
only works on second stroke for me on mac ver 2.5.0 |
Confirmed first hotkey stroke shows "copied" pop-up, but pasting elsewhere does not concur |
Confirmed not working on 176-customizable-hotkeys. Reproduce:
|
@Harjot1Singh how can I get started? |
You're going to want to check if the handler is just not being fired the first time at all to start with. If it's not, find out why. It could be a race-condition or render issue. Test to see if it's any better when you supply a hardcoded keymap and handlers. There are a couple of components which handle different hotkeys, but copy hotkeys are handled in |
In browser, this is not an issue. So this has to do something with Electron. |
@Harjot1Singh what should I do. Because if it was a render issue then it should exist in browser too (Or my assumption is wrong?) |
Do some console logging to confirm whether the handler is firing or not. |
I have noticed that in production release if you change shabads it again fails to register the first copy hotkey. |
I modified this reducer
|
So I logged the hook to see what is being passed to it and correct text is being passed down. Now it is all on copy-to-clipboard that handles copying. |
Does not work on dev |
A temporary fix shabados#437
#573 will temporarily fix this but an ideal solution is resolution of sudodoki/copy-to-clipboard#90 |
A temporary fix shabados#437 refactor(frontend): comment
It felt as though the copy function wasn't working the first time every once in a while. Reported by two users.
The text was updated successfully, but these errors were encountered: