GLWpfControl icon indicating copy to clipboard operation
GLWpfControl copied to clipboard

KeyDown, KeyUp, GotFocus, LostFocus

Open markbeach opened this issue 5 years ago • 4 comments

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" />

markbeach avatar Dec 07 '20 04:12 markbeach

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

varon avatar Dec 16 '20 23:12 varon

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.

BBoldenow avatar Mar 25 '21 17:03 BBoldenow

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 avatar Jun 18 '22 09:06 NogginBops

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

lazerW0lf avatar Jul 06 '22 20:07 lazerW0lf