Fix right clicking on actionbar items to activate them

Fixes #833