So what I got working so far is that with starting a command the rectangle tool gets selected and I'm waiting for the user to finish drawing a rectangle. However, if the user hits escape instead of drawing a rectangle, I have no way of detecting that.
When hitting escape I only get the HandlerLostFocus and HandlerGotFocus actions. However I get the same actions when I finish drawing the rectangle normally.
Is there any way I can detect an abort via the escape key? Some sort of key press action?
Thanks in advance,