expose keychar and forward EVENT_KEY_TYPED#60
Open
AucaCoyan wants to merge 1 commit intoSnosMe:masterfrom
Open
expose keychar and forward EVENT_KEY_TYPED#60AucaCoyan wants to merge 1 commit intoSnosMe:masterfrom
keychar and forward EVENT_KEY_TYPED#60AucaCoyan wants to merge 1 commit intoSnosMe:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi! Hope you are doing well.
I'm using this library for my application, and when I realized I need to support other keyboards (AZERTY, or non-latin keyboards) I need to use the
keycharvalue fromkeyboard_event_data, which uiohook.h exposes, but uiohook-napi doesn't.The benefit of doing this is that with this PR you can:
and have the rendered letter, instead of the keyboard position. This takes dead-key sequences in mind, so
´+e→éon Spanish/French layouts should work.As a requirement for the dead key, I need to use
EVENT_KEY_TYPEDinstead of_PRESSEDand_RELEASED, because I want to grab the user intention to writeé, not the combination of´+epressed and released both.I did this PR with some help of AI, but read everything I could and simplify as much as possible, I'm not familiar with the project, so sorry if I made a mistake.
Thank you for reading!