 
   @keyViewHistory = []
   superKey        = if navigator.userAgent.indexOf("Mac OS X") is -1 then "ctrl" else "command"
+  addListener     = (eventName, listener, capturePhase=yes)->
+    document.body.addEventListener eventName, listener, capturePhase
 
   constructor:(options,data)->
 

      @setWindowProperties event
      @notifyWindowResizeListeners event

    document.body.addEventListener "dragenter", (event)=>
      unless @dragInAction
        @emit 'DragEnterOnWindow', event
        @setDragInAction yes
    , yes

    document.body.addEventListener "dragleave", (event)=>
      unless 0 < event.clientX < @winWidth and
             0 < event.clientY < @winHeight
        @emit 'DragExitOnWindow', event
        @setDragInAction no
    , yes

    document.body.addEventListener "drop", (event)=>
      @emit 'DragExitOnWindow', event
      @emit 'DropOnWindow', event
      @setDragInAction no
    , yes

    layers = @layers

    document.body.addEventListener 'mousedown', (e)=>
      # $('.twipsy').remove() # temporary for beta
      lastLayer = layers.last


    if throttle
      KD.utils.killWait @resizeNotifiersTimer
      @resizeNotifiersTimer = KD.utils.wait duration, fireResizeHandlers
    else do fireResizeHandlers