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

KeyDown, KeyUp, GotFocus, LostFocus #31

Closed
markbeach opened this issue Dec 7, 2020 · 5 comments · Fixed by #48
Closed

KeyDown, KeyUp, GotFocus, LostFocus #31

markbeach opened this issue Dec 7, 2020 · 5 comments · Fixed by #48
Labels
4.0 bug Something isn't working
Milestone

Comments

@markbeach
Copy link

Is there something I'm missing in order to use these events in the control? MouseMove, SizeChanged, and Render work fine.

<glWpfControl:GLWpfControl
x:Name="OpenTkControl"
KeyUp="OpenTkControl_KeyUp"
MouseMove="OpenTkControl_MouseMove"
LostFocus="OpenTkControl_LostFocus"
GotFocus="OpenTkControl_GotFocus"
Loaded="OpenTkControl_Loaded"
SizeChanged="OpenTkControl_Resize"
Render="OpenTkControl_OnRender"
/>

@varon
Copy link
Member

varon commented Dec 16, 2020

I have no idea, but would welcome a PR if you figure this out.

@BBoldenow
Copy link
Contributor

BBoldenow commented Mar 25, 2021

I haven't tried the focus events, but have the same issue with KeyDown and KeyUp. I'll try digging, Varon.

Edit: I Got KeyUp & KeyDown working, these are awaiting a PR. I'm not sure why the GotFocus and LostFocus aren't working though. I'll try tracking it down more later.

@NogginBops
Copy link
Member

I'm going to reopen this issue with the goal of having a "proper" fix for events where we don't have to redirect all of them.

@NogginBops NogginBops reopened this Jun 18, 2022
@NogginBops NogginBops modified the milestones: 4.2.0, 4.3.0 Jun 18, 2022
@lazerW0lf
Copy link

@NogginBops see my issue #82 pertaining to a bug with the current redirection scheme.

@NogginBops
Copy link
Member

#86 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants