Prevent scrolling in content if arrow up/down ist used to navigate online notifications.

This commit is contained in:
Martin Edenhofer 2016-07-07 07:11:02 +02:00
parent 552988f514
commit ccba88e775

View file

@ -65,9 +65,11 @@ class App.OnlineNotificationWidget extends App.Controller
@hide() @hide()
return return
else if e.keyCode is 38 # up else if e.keyCode is 38 # up
e.preventDefault()
@nudge(e, -1) @nudge(e, -1)
return return
else if e.keyCode is 40 # down else if e.keyCode is 40 # down
e.preventDefault()
@nudge(e, 1) @nudge(e, 1)
return return
else if e.keyCode is 13 # enter else if e.keyCode is 13 # enter