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

Linux - Synchronize NumLock, CapsLock & ScrollLock #1071

Open
evonox opened this issue Jul 5, 2024 · 2 comments
Open

Linux - Synchronize NumLock, CapsLock & ScrollLock #1071

evonox opened this issue Jul 5, 2024 · 2 comments

Comments

@evonox
Copy link

evonox commented Jul 5, 2024

NumLock, CapsLock & ScrollLock work correctly when the terminal window is active. However, if I click somewhere else, change the state of these keys and then click back to the terminal window, it works in the opposite direction.

I suggest upon re-activating the terminal window to check the state of these flags and send to the terminal virtual e.g. NumLock press if it is not synchronized. To my surprise, the current API of browsers allows to check the state of NumLock / CapsLock / ScrollLock - https://www.w3schools.com/jsref/event_mouse_getmodifierstate.asp

@copy
Copy link
Owner

copy commented Jul 6, 2024

A PR would be welcome.

@evonox
Copy link
Author

evonox commented Jul 6, 2024

Ok, I will prepare Pull Request for this issue.

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

2 participants