Dismiss the Modify popover on ESC or mouse click

If the user presses ESC or clicks elsewhere hide the popover.
Merge remote-tracking branch 'origin/108-dismiss-modify-on-escape'