From ccba88e775d3b70a04f4e349fb08c1df716a430f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 7 Jul 2016 07:11:02 +0200 Subject: [PATCH] Prevent scrolling in content if arrow up/down ist used to navigate online notifications. --- .../app/controllers/widget/online_notification.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/controllers/widget/online_notification.coffee b/app/assets/javascripts/app/controllers/widget/online_notification.coffee index 9c512a0f1..26f274adb 100644 --- a/app/assets/javascripts/app/controllers/widget/online_notification.coffee +++ b/app/assets/javascripts/app/controllers/widget/online_notification.coffee @@ -65,9 +65,11 @@ class App.OnlineNotificationWidget extends App.Controller @hide() return else if e.keyCode is 38 # up + e.preventDefault() @nudge(e, -1) return else if e.keyCode is 40 # down + e.preventDefault() @nudge(e, 1) return else if e.keyCode is 13 # enter