Keyboard event handle in RhinoCommon

I believe it is now possible within RhinoCommon. See this:

Create an event handler like this,

public void OnKeyboardEvent(int key)
{
RhinoApp.WriteLine("Char: " + key);
}

and then register the handler like this,

RhinoApp.KeyboardEvent += OnKeyboardEvent;

It worked for me.

3 Likes