We now automatically "click" the sheet's ok button to dismiss the sheet whenever we modify the contents of the link textfield. The user can use Edit->Remove Link... to get back to a state where they can manually edit the link text.

Also moved some braces around.

Signed-off-by: Reed Mangino <reed@sanebox.com>