02-24-2017
08:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-24-2017
08:30 AM
Pick method and Esp and Enter keys
Hello!
I use CommandManager.Pick() and want to handle escape and enter keys at the same time, but I dont know how to do it.
Inventor blocks WindowsForms's KeyEvents. If I create new InteractionEvents, it works but not with Pick method. This function has some own interaction events, whiсh dont want to join to MY interaction events....
Have you got any ideas?
02-25-2017
03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-25-2017
03:54 AM
invApp.CommandManager.UserInputEvents.OnTerminateCommand += UserInputEvents_OnTerminateCommand;
private void UserInputEvents_OnTerminateCommand(string CommandName, NameValueMap Context)
{
MessageBox.Show("Terminated");
}This is for escape key.
But how can I catch Enter key?
02-25-2017
11:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-25-2017
11:49 PM
Well, OnTerminateCommand also triggered when command finishes normally, but it is not a problem in my case.
But Enter key doesnt work.