diff --git a/app/assets/javascripts/app/controllers/widget/online_notification.coffee b/app/assets/javascripts/app/controllers/widget/online_notification.coffee index b2b420661..520fc64f6 100644 --- a/app/assets/javascripts/app/controllers/widget/online_notification.coffee +++ b/app/assets/javascripts/app/controllers/widget/online_notification.coffee @@ -57,7 +57,6 @@ class App.OnlineNotificationWidget extends App.Controller ) $(window).on 'click.notifications', @hide - $(window).on 'keydown.notifications', @listNavigate @updateContent() @@ -201,11 +200,13 @@ class App.OnlineNotificationWidget extends App.Controller @show() show: => + $(window).on 'keydown.notifications', @listNavigate @shown = true @el.show() @updateHeight() hide: => + $(window).off 'keydown.notifications' @shown = false @el.hide()