Fix right-clicking on an item not selecting it before showing a context menu