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

[BUG] Maybe missing get_scancode? #919

Closed
mintsoft opened this issue Mar 19, 2024 · 0 comments · Fixed by #920
Closed

[BUG] Maybe missing get_scancode? #919

mintsoft opened this issue Mar 19, 2024 · 0 comments · Fixed by #920
Labels

Comments

@mintsoft
Copy link
Contributor

mintsoft commented Mar 19, 2024

Describe the bug
I've been trying to find get_scancode (https://docs.gtk.org/gdk3/method.Event.get_scancode.html) or any sort of wrapper of it within gotk3, I cannot find any mention of scancode anywhere in the source at all. My understanding is that it would be on the gdk.Event directly, but I guess it could also be on a KeyEvent (although that doesn't seem to be what the docs suggest).

It was added in 3.22 so I'm guessing it's possible that it is missing?

To Reproduce
Steps to reproduce the behavior:

"inputBox_key_press_event_cb": func(entry *gtk.Entry, event *gdk.Event) {
    y := event.ScanCode();
    keyEvent := gdk.EventKeyNewFromEvent(event)
    x := keyEvent.ScanCode()
}

Expected behavior
the scancode should be accessible?

Error messages
Compile error

Environment:
gtk3 version: '3.24.38-2~deb12u1'
go version: 'go version go1.19.8 linux/amd64'
os: 'Debian 12'

Additional context

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

Successfully merging a pull request may close this issue.

1 participant