 globals                  = require 'globals'
 getGroup                 = require 'app/util/getGroup'
 checkFlag                = require 'app/util/checkFlag'
-isKoding                 = require 'app/util/isKoding'
+isFeedEnabled            = require 'app/util/isFeedEnabled'
 AppStorage               = require 'app/appstorage'
 AppController            = require 'app/appcontroller'
 KodingAppsController     = require 'app/kodingappscontroller'


    {appStorageController, appManager} = kd.singletons

    unless isKoding()
      appManager.on 'FrontAppIsChanged', (currentApp, oldApp) =>
        if currentApp isnt oldApp and oldApp is this
          {thread, message} = ActivityFlux.actions

    unless e.which is keyboardKeys.ESC
      kd.utils.stopDOMEvent e

    if isFeedEnabled()
      switch e.model.name
        when 'prevwindow' then @getView().openPrev()
        when 'nextwindow' then @getView().openNext()
