Fixed toolbar stealing focus after closing floating panels and dropdowns (#327).
Fixed some toolbar buttons being enabled with no editor tab open.