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

Problem with diacritical marks in Windows with the Spanish keyboard. #77

Open
0mcandal0 opened this issue Feb 3, 2022 · 3 comments
Open

Comments

@0mcandal0
Copy link
Contributor

There is a problem with the library when I try to make diacritical marks on the keyboard.

For example, if I try to type the character Á the library interferes and does not show the expected value. In another case the character ü becomes ú.

The tests have been done on a PC with Windows 10 operating system and with the latest available version of the library and running the grab.rs example.

@Narsil
Copy link
Owner

Narsil commented Nov 11, 2022

Hi, sorry for the very late reply, GH wasn't giving me notifications here.

I'm not sure I understand your issue.

You're grabbing the keyboard, and it's messing up your keystrokes meaning it's not key logging properly ?
I would have to check, but the code is as much as possible receiving and sending back keystrokes as they happen... So I'm not sure what's going on.

If you could share a working example that might help. (I don't have a windows handy, but I could try and take a look sometime)

@0mcandal0
Copy link
Contributor Author

Here is the link to how I fixed the problem for my particular case.

1420b03

As you can see, I commented the call to set_global_state before the get_code_name function and I controlled the behaviour of last_state from this last method.

This way the retrieval of the keystrokes is correct.

@Narsil
Copy link
Owner

Narsil commented Nov 14, 2022

Really interesting, thanks !

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

No branches or pull requests

2 participants