Prevent keyboard input


How to cancel user keyboard input.
I looked for a class like Rhino.UI.MouseCallback (maybe KeyboardCallback) but I can’t find.
What is the way to cancel and catch these events?


Hi @kitjmv,

Perhaps your form should detect when it loses focus and if in “edit” mode, either accept or cancel the changes.

– Dale

Helo @dale, thank you,

Sorry, I write my message so fast. The form is drawn in OpenGL on DisplayPipeline.DrawOverlay.
So my question may be: I’m in the viewport, how to catch the numpad keys (or other keys) ?


I see we’ve talked about keyboard hooks before.

Or, just use a UI framework, such as Eto…

– Dale

Ok, Thank you!