I discovered some unexpected behaviors when trying to write a custom tool. SketchUp native tools seem to suppress certain keys from triggering tool shortcuts. For example, if I have the letter ‘s’ assigned as a shortcut key, I can still enter “12s” in the VCB while using the Circle tool without triggering the shortcut key behavior. Or if I enter ‘30mm’ in the VCB, the letter ‘m’ will not trigger a tool shortcut key.
However, in my case, I want to use a different key, the letter ‘L’. I want to prevent the letter L from triggering a shortcut key but it appears that only certain pre-defined keys can be suppressed when entering text in the VCB.
I thought that returning ‘true’ from onKeyDown might prevent shortcut keys from being triggered but so far I’ve had no luck with this.
Am I missing something here? Is it only possible for certain SketchUp-defined keys to be suppressed? (such as ‘s’, ‘m’, and other keys that could refer to units of length)