 lockedTab = false
 
 TabContentsUnion = React.createClass
+  prevActiveKey: 0
   getInitialState: ->
     nowKey: null
 

    @setNewKey e.detail.key

  findChildByKey: (key) ->
    _.filter((React.Children.map @props.children, 
        (child) -> if child.key == key then child),
      Boolean)[0]


    @selectTab 'settings'
  handleCtrlOrCmdNumberKeyDown: (num) ->
    switch num
      when 1
        key = 'mainView'
      when 2
        key = 'shipView'
