Simplify and fix midpoint drawing logic (fixes #2136)
Limit imagery_used tag to 255 characters (fixes #2181)
Ensure combobox menus are closed on blur (fixes #2207)

See 7c20bd3 for explanation.
Don’t preventDefault on mousedown (fixes #2115)

This prevents blur events from getting properly dispatched.