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

Shortkeys are not working when language is changed #75

Open
hdodov opened this issue Feb 27, 2019 · 2 comments
Open

Shortkeys are not working when language is changed #75

hdodov opened this issue Feb 27, 2019 · 2 comments

Comments

@hdodov
Copy link

hdodov commented Feb 27, 2019

I have key combinations involving Alt and Shift. On Windows, those two keys are used to switch the input language. If I have a shortkey for Alt+A, it works perfectly if I'm writing in English. However, if I accidentally switch to my other language (Bulgarian), the shortkey no longer works. I guess it's because the a key is now ь, and I have no combination set for Alt+ь.

However, I noticed that when I press the a, it has the same keycode (65) no matter what language I'm writing in. Perhaps an option can be implemented that allows you to use keycodes to monitor the keys?

@savandriy
Copy link

I am facing the same issue. In my case, I need the key combinations to work in English, Russian and Ukrainian. As a temporary workaround, I'm using this setup with "multi keys":

  <div
    v-shortkey.once="{en: ['shift', 's'], ru: ['shift', 'ы'], ua: ['shift', 'і']}"
    @shortkey="() => onShiftS()"
  >

@hdodov
Copy link
Author

hdodov commented Mar 30, 2019

I just switched to hotkeys. It doesn't have that problem and did the job for me. Depends on how important reactivity is for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants