Hi local306, in version 4 there is a property: moi.command. currentCommandName which will have the name of the currently running command if there is one.
So something like:
if ( moi.command.currentCommandName == '' )
{
/// Do something only if no command is running
}
Also if you hit the Tab key it will put keyboard focus into any input field that's in the command context UI, so you if you press the tab key before you type your numbers that should also work with your current setup.
If the input field has focus your numpad keys should go to it instead of being triggered as a shortcut key.
- Michael
|