   _detectCmdKey: ( _keyCode )->
     # On Opera, return true on any of the keycodes
     if BROWSER_TYPE.opera
-      if ~@_cmdKeys.indexOf(_keyCode) then return true else return false
+      return !!~@_cmdKeys.indexOf(_keyCode)
     # Any mac browser (except opera, above) uses left or right windows key
     # equivalent as the Command key.
     else if BROWSER_TYPE.mac

      _ctrl = @_views[_viewId]
      if _ctrl.keyUp?
        _stop = true if _ctrl.keyUp( _keyCode )
    for _viewId in _textEnterers
      _textEnters.push( _viewId ) if ~_enabled.indexOf( _viewId )
    for _viewId in _textEnters
      _ctrl = @_views[_viewId]
      if _ctrl.textEnter?
        _stop = true if _ctrl.textEnter( _keyCode )
    Event.stop(e) if _stop
  keyPress: (e)->
    @warn('EventManager#keyPress not implemented')

        _ctrl = @_views[_viewId]
        _dragged.unshift( _viewId )
        _stop = true if _ctrl.startDrag( x, y, _leftClick )
    @_cancelTextSelection() unless _startDragIds.length == 0 and _mouseDownIds.length == 0
    Event.stop(e) if _stop
  #
