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

Weird behaviour when using non-English keyboard layout (likely cause Todoist shortcuts persist) #180

Open
anton2020 opened this issue Jul 30, 2021 · 8 comments
Labels
bug Something isn't working help wanted Pull requests fixing this are encouraged

Comments

@anton2020
Copy link

Hey there!
First, thanks for the great extension. I'm using two keyboard layouts (US English and Russian) on a daily basis and I've noticed that sometimes when I forget that my keyboard is in the Russian layout and press a button while in Todoist (and your extension is not intended to work with non-English layouts, right?), something unexpected happens — so this extension kinda works but strangely...

For example, if I go to my Inbox, select a task and press "d" I complete it. However, if I press "в" on the Russian layout instead (same key) then all Inbox items get "sorted by due date".

Do you know if I could fix it somehow? Either by disabling the non-English keyboard layout or by having it respond the same way as English one?

PS: I just tried disabling your shortcut completely and the "if I press "в" on the Russian layout" thing persists! Seems like the original mapping for "d" shortcut works for the Russian layout while your extension changes behaviour for English one.

Do you know if I can do anything about it? Thanks in advance!

@anton2020
Copy link
Author

UPD: I actually think disabling the default Todoist shortcuts will help solve this issue. Does anyone know if / how one could turn them off?

@adamleerich
Copy link
Contributor

Do package users want the extension to turn off Todoist's built-in shortcut commands? If so, that is something that I'd be happy to try and figure out. :)

@mgsloan
Copy link
Owner

mgsloan commented Sep 27, 2021 via email

@mgsloan
Copy link
Owner

mgsloan commented Nov 3, 2021

It's possible this might be fixed with the latest extension version (134 or 135), can you verify?

@mgsloan mgsloan assigned mgsloan and anton2020 and unassigned mgsloan Nov 3, 2021
@mgsloan mgsloan added the bug Something isn't working label Nov 3, 2021
@anton2020 anton2020 removed their assignment Nov 9, 2021
@mgsloan
Copy link
Owner

mgsloan commented Nov 11, 2021

image

🤔 Closing this issue

@mgsloan mgsloan closed this as completed Nov 11, 2021
@anton2020
Copy link
Author

Hello @mgsloan ! I am not sure why you assigned this issue to me? Hence I removed my assignment.
However, this bug I described still persists for a non-English keyboard layout. Shall the issue be reopened?

@anton2020
Copy link
Author

Okay, seems like there was a misunderstanding on my side. Following up on @mgsloan reply from 8 days ago about versions 134-135: the unexpected behaviour I described still persists in version 137 (pressing "d" and Russian layout's "в" yields different results).

Sorry for my initial confusion, I am not used to Github's functionality yet.

@mgsloan mgsloan reopened this Nov 16, 2021
@mgsloan
Copy link
Owner

mgsloan commented Nov 16, 2021

No worries! I've re-opened the issue.

I think it would be best to fix this issue upstream, todoist-shortcuts uses a library called mousetrap for its keypress handling - and there are a few issues on the repository I found via this search:

Given that that repo has 10K stars no doubt the highest impact thing would be to fix it there. Unfortunately I am guessing it is probably a tricky problem to fix.

@mgsloan mgsloan added the help wanted Pull requests fixing this are encouraged label May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Pull requests fixing this are encouraged
Projects
None yet
Development

No branches or pull requests

3 participants