       @propagateEvent (KDEventType: 'DropOnWindow'), event
       @setDragInAction no
     , yes
-    
+
     @layers = layers = []
 
     document.body.addEventListener 'mousedown', (e)=>

    @bindEvents()
    @setWindowProperties()
    super
  
  addLayer: (layer)->

    unless layer in @layers
      @layers.push layer
  
  removeLayer: (layer)->

    if layer in @layers
      index = @layers.indexOf(layer)
      @layers.splice index, 1
  
  bindEvents:()->

    $(window).bind "keydown keyup keypress",@key

      @setKeyView @oldKeyView

  setKeyView:(newKeyView)->

    return if newKeyView is @keyView

    newKeyViewAcceptsKeyStatus = ()->
