Closed Ty3uK closed 1 year ago
Ohh, I see. That's alright. We will resolve it in different PR. This doesn't seem to be that important as of now
Do you think this PR is ready to merge?
Do you think this PR is ready to merge?
Give me another five minutes to check production release 🫡
Got another bug when trying to set Option+Shift+Space
shortcut
Also, quick question: do I need to squash commits or you prefer to preserve full history of changes?
Also, quick question: do I need to squash commits or you prefer to preserve full history of changes?
Oh dw, I'll directly do Squash & Merge
TBH, The whole shortcut recorder function is messy & hard to understand.
TBH, The whole shortcut recorder function is messy & hard to understand.
You can create issue and assign it to me, if you want. I can do some refactoring 🙂
I've tested it and everything works as expected... Except if anything else launches while setting the shortcut then we can only open the window by clicking the menu item
I've tested it and everything works as expected... Except if anything else launches while setting the shortcut then we can only open the window by clicking the menu item
Maybe we can do some researching for global shortcuts from Rust itself? I think Tauri do this under the hood, but maybe some other library can do this better...
I've tested it and everything works as expected... Except if anything else launches while setting the shortcut then we can only open the window by clicking the menu item
Maybe we can do some researching for global shortcuts from Rust itself? I think Tauri do this under the hood, but maybe some other library can do this better...
Oh no, Everything works as expected. But the fact that we unregister the key before recording the shortcut is causing the problem.
What do you think?
You can create issue and assign it to me, if you want. I can do some refactoring 🙂
I think we can do it at later time when we find to be working on any issue related to the shortcut function... What are you opinion on it?
I've tested it and everything works as expected... Except if anything else launches while setting the shortcut then we can only open the window by clicking the menu item
Maybe we can do some researching for global shortcuts from Rust itself? I think Tauri do this under the hood, but maybe some other library can do this better...
Oh no, Everything works as expected. But the fact that we unregister the key before recording the shortcut is causing the problem.
What do you think?
I've tried to comment unregister
and it does nothing 🥲
You can create issue and assign it to me, if you want. I can do some refactoring 🙂
I think we can do it at later time when we find to be working on any issue related to the shortcut function... What are you opinion on it?
Great catch! I think the same way 🙂
I've tested it and everything works as expected... Except if anything else launches while setting the shortcut then we can only open the window by clicking the menu item
Maybe we can do some researching for global shortcuts from Rust itself? I think Tauri do this under the hood, but maybe some other library can do this better...
Oh no, Everything works as expected. But the fact that we unregister the key before recording the shortcut is causing the problem. What do you think?
I've tried to comment
unregister
and it does nothing 🥲
If you just unbind the unregister line you would notice that the pre-existing shortcut still works after you try to set a shortcut which already exist.
Eg: if you try option + command + space
without unregister then it would now listen for the default shortcut which was CMD + SHIFT + G... But with Unregister it wouldn't listen for anything..
Do you use Discord by any chance ? It would be easier to communicate there IMO 😄
Do you use Discord by any chance ? It would be easier to communicate there IMO 😄
Yes 🙂 Ty3uK#0057
I've tested it and everything works as expected... Except if anything else launches while setting the shortcut then we can only open the window by clicking the menu item
Maybe we can do some researching for global shortcuts from Rust itself? I think Tauri do this under the hood, but maybe some other library can do this better...
Oh no, Everything works as expected. But the fact that we unregister the key before recording the shortcut is causing the problem. What do you think?
I've tried to comment
unregister
and it does nothing 🥲If you just unbind the unregister line you would notice that the pre-existing shortcut still works after you try to set a shortcut which already exist.
Eg: if you try
option + command + space
without unregister then it would now listen for the default shortcut which was CMD + SHIFT + G... But with Unregister it wouldn't listen for anything..
Got it. So maybe I just drop this line and we put this in another issue?
Also, we can do some refactoring just for resolving that kind of issues 🙂
I've tested it and everything works as expected... Except if anything else launches while setting the shortcut then we can only open the window by clicking the menu item
Maybe we can do some researching for global shortcuts from Rust itself? I think Tauri do this under the hood, but maybe some other library can do this better...
Oh no, Everything works as expected. But the fact that we unregister the key before recording the shortcut is causing the problem. What do you think?
I've tried to comment
unregister
and it does nothing 🥲If you just unbind the unregister line you would notice that the pre-existing shortcut still works after you try to set a shortcut which already exist. Eg: if you try
option + command + space
without unregister then it would now listen for the default shortcut which was CMD + SHIFT + G... But with Unregister it wouldn't listen for anything..Got it. So maybe I just drop this line and we put this in another issue?
Also, we can do some refactoring just for resolving that kind of issues 🙂
Yep, lets do that 🙌
Awesome, Let's merge it 🚀
Related to #11.
event.key
returns transformed char whenoption
key is pressed.For example, when user is trying to record shortcut
Option+Shift+G
,event.key
returnsOption+Shift+˝
.event.code
returnsKeyG
instead. So getting substring with offset 3 fixes this issue.This commit fixes another bug: when user records shortcut that already registered, window will hide. Adding
unregister
before start recording fixes this issue.