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

Can't type special characters with right alt #154

Open
caderek opened this issue Sep 16, 2022 · 3 comments
Open

Can't type special characters with right alt #154

caderek opened this issue Sep 16, 2022 · 3 comments
Labels

Comments

@caderek
Copy link

caderek commented Sep 16, 2022

Hi, great library!

I'm using it via Node.js bindings and the author of the bindings thinks that my issue is a problem with this library.

The problem that I have, is that when I send the key with right alt pressed, it does not type special character but executes a shortcut like if the left alt was pressed instead. For example, RightAlt+5 should type the symbol, but instead it does whatever is assigned to LeftAlt+5 (for example, goes to the fifth tab in a browser).

My OS: Linux (popOS! / Ubuntu)

Original issue: SnosMe/uiohook-napi#22

@kwhat
Copy link
Owner

kwhat commented Sep 17, 2022

This is working for me in 1.2.2.

Compile that 1.2.2 tag:

cmake -B ./build \
    -G "Unix Makefiles" \
    -D CMAKE_INSTALL_PREFIX=./dist/linux/arm64 \
    -D CMAKE_VERBOSE_MAKEFILE=true \
    -D BUILD_SHARED_LIBS=ON \
    -D BUILD_DEMO=ON

cmake --build ./build \
    --parallel 2 \
    --config RelWithDebInfo \
    --clean-first

cmake --install ./build --config RelWithDebInfo

cd build/
./demo_hook

Left Alt (56 / 0x38):

id=4,when=208851260,mask=0x2008,keycode=56,rawcode=0xFFE9
id=3,when=208851260,mask=0x2008,keychar=
id=5,when=208851316,mask=0x2000,keycode=56,rawcode=0xFFE9

Right Alt (3640 / 0xE38):

id=4,when=208857124,mask=0x2080,keycode=3640,rawcode=0xFFEA
id=3,when=208857124,mask=0x2080,keychar=
id=5,when=208857275,mask=0x2000,keycode=3640,rawcode=0xFFEA

@SnosMe
Copy link
Contributor

SnosMe commented Sep 17, 2022

To clarify, this is about hook_post_event

@kwhat
Copy link
Owner

kwhat commented Sep 17, 2022 via email

@kwhat kwhat added the linux label May 5, 2023
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