Take into account ctrl click and number of selected items for context menu changes

This should handle ctrl clicking on darwin platforms better when changing between multi-selection and normal contextual menus.

This should probably have tests to make doubly sure it works, I'll try to work those out soonish.