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

Keystroke not recognized on Windows #79

Open
jdospina95 opened this issue Mar 29, 2019 · 5 comments
Open

Keystroke not recognized on Windows #79

jdospina95 opened this issue Mar 29, 2019 · 5 comments
Assignees
Labels

Comments

@jdospina95
Copy link

jdospina95 commented Mar 29, 2019

When pressing alt while using Windows the keystroke is not recognized, however on Linux it is recognized. I am trying to do a copy paste in my app by pressing the ctrl + alt + c for copy and ctrl + alt + v for paste but it is not currently working since vue-shortkey is not recognizing the key press. I tried switching between keyboard layouts but it seems like the error is not related to that. I am using US-layout.

@fgr-araujo
Copy link
Owner

I'll try it on Windows. I'm using linux.

@fgr-araujo fgr-araujo added the bug label Apr 5, 2019
@fgr-araujo fgr-araujo self-assigned this Apr 5, 2019
@mdix
Copy link
Contributor

mdix commented Apr 9, 2019

Some IEs are using different key values for some keys. Not sure about the alt key tough, but pretty sure about arrowdown, arrowup, arrowleft, arrowright, backspace, tab, enter, escape, delete. I'd suggest using keycodes instead as they're the same in all browsers.

@fgr-araujo
Copy link
Owner

@mdix #80 solve this?

@mdix
Copy link
Contributor

mdix commented Apr 29, 2019

@iFgR Nope, not solved by this. The linked PR just solves the issue that in IE11 the Event object can not be used as a constructor. A possible fix would be to go with keycodes as they're consistent through all browsers. Just let me know if you're short on time, I'd invest some time in the implementation.

@fgr-araujo
Copy link
Owner

@mdix I'd appreciate so much if you could help me!
I'm changing the city and it's giving me so much time.

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

No branches or pull requests

3 participants