Fixes #13 - Edit menu doesn't open when some text is selected, and selection is removed when Cancel is pressed in the annotation menu