diff --git a/app/assets/javascripts/app/controllers/widget/online_notification.coffee b/app/assets/javascripts/app/controllers/widget/online_notification.coffee index eb00f933f..f03bde6d7 100644 --- a/app/assets/javascripts/app/controllers/widget/online_notification.coffee +++ b/app/assets/javascripts/app/controllers/widget/online_notification.coffee @@ -58,7 +58,6 @@ class App.OnlineNotificationWidget extends App.Controller ) $(window).on 'click.notifications', @hide - $(window).on 'keydown.notifications', @listNavigate @updateContent() @@ -207,11 +206,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()