Hide right click menu after copy + paste

Previously, the context menu would remain open after clicking copy or
paste. It now closes when you click an option.