                 top: 0
                 display: 'block'
                 visibility: if wysiwyg_editor.showing != @props.key then 'hidden'
+
               onFocus: (e) => 
-                if !@local.focused_toolbar_item?
-                  @local.focused_toolbar_item = 0 
-                  save @local
-                @refs["toolbaritem-#{@local.focused_toolbar_item}"].getDOMNode().focus()
+                if !@local.focused_toolbar_item && !@local.just_unfocused
+
+                  if !@local.focused_toolbar_item?
+                    @local.focused_toolbar_item = 0 
+                    save @local
+
+                  @refs["toolbaritem-#{@local.focused_toolbar_item}"].getDOMNode().focus()
 
               onKeyDown: (e) => 
                 if e.which in [37, 38, 39, 40]

                wysiwyg_editor = fetch 'wysiwyg_editor'
                wysiwyg_editor.showing = @props.key
                save wysiwyg_editor
              onBlur: => 
                # if the focus isn't still on an element inside of this menu, 
                # then we should close the menu                


      else

        DIV null,

          Dock
