Fix #400
Fixes shortcut triggering when doing action.