-
Notifications
You must be signed in to change notification settings - Fork 181
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
Get caps lock state #296
Comments
From the issue you linked, the commit which closed it: glfw/glfw@0e8c4ea See https://github.com/go-gl/glfw/search?q=GLFW_MOD_CAPS_LOCK On the go side, it looks like: Line 254 in e5ec435
Hopefully that's enough for you to run with? |
Per the fyne people that allows them to detect if the caps lock key is hit, but does not allow getting the current caps lock state. |
getKeyMods glfw/v3.3/glfw/glfw/src/win32_window.c Lines 429 to 447 in eb74977
|
@myavchik that appears to be an implementation detail on win32 -- and doesn't amount to giving you the ability to test the key state for yourself with a glfw API. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getkeystate I didn't find evidence that this is in upstream. Is it? If it is, please link to it, and patches are welcome to implement the downstream bit. For now, marking external. |
Been using fyne and wanted to get the current state of the caps lock key. It appears that this may have been added in glfw 3.3: glfw/glfw#946
Has this been added to this repo as well? See the fyne ticket here: fyne-io/fyne#1391
The text was updated successfully, but these errors were encountered: