Well it’s more an issue of how the toolbutton (action) and the keypress_event would handle pressing the spacebar. If they’re both active, the action shortcut will get the event first and toggle the state of the pan tool button. The event is then passed on where the keypress_event handler then toggles it again… and since the space is still pressed I believe it keeps sending an event that the spacebar was pressed, causing the toolbutton to constantly toggle on and off until the space is released… leaving it in an undetermined state.
It’s possible I can eat up or not pass the event on in my keypress_event handler, in which case the action shortcut would not recieve the event, BUT if the action get’s the event first, there’s not much I could do, as the toolbutton will at least toggle twice.
In any case the spacebar shortcut does work. I’ll play some more tonight.