Mapkeys - Ensure there are no commands that toggle (like showing and hiding the navigator)
1. Describe the Problem
Reference:
Ticket - 17688221
Article - CS438652
We were trying to create a mapkey that turns off the navigator bar. The trail file shows:
mapkey(continued) ~ Command `ProCmdNavigatorBtn` 0; - this is supposed to turn it off
mapkey(continued) ~ Command `ProCmdNavigatorBtn` 1; - this is supposed to turn it on
However, when generating a mapkey, the 0 or 1 will just toggle the navigator. Meaning, you can run the mapkey 3 times and it will turn off, turn on, and then turn off again. It should not be like this. A 0 should be off and a 1 should be on. That's how 99% of all other commands work. All on / off or open / close commands in Creo should ensure they are not toggles, so people can properly write mapkeys that are repeatable and work in all situations.
2. Are you using a workaround?
No. We just hope the user has the correct setup before they start the mapkey, or else it won't work as designed.
3. What is the use case for your organization?
We are trying to create a mapkey that closes the navigator bar for a specific reason, but we can't guarantee that it will work since the command is actually just 'toggling', not closing or opening.
4. What impact does this problem currently have on your organization?
It could prevent our complicated mapkey from doing everything it needs to do.
