- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am opening a WPF form from an Addin button with .Show (.ShowDialog is not wanted).
If I then make an entry in a text box in the form, the last command is repeated when the space bar is pressed (Inventor default setting) and the already opened form opens again.
How can I temporarily switch off the keyboard command "Repeat command" which is triggered by pressing the spacebar using the API? Or is it possible to delete the last command from memory so that pressing space do nothing?
I already have tried it with
InventorApp.CommandManager.ControlDefinitions("AppRestartCommand").Enabled = False
but that didn't work.
Do I have to catch the space key event? And if so, how could I do it?
Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Solved! Go to Solution.