- SharpGL won't capture KeyDown event
Solution:
- Make OpenGLControl focusable, like this: Focusable="True"
- Set focus on the OpenGL control in the hosting window: OpenGLControl.Focus();
If the OpenGL control is in a User Control, then set focus on the user control in the hosting window of the user control.
No comments:
Post a Comment