Prevent scrolling in content if arrow up/down ist used to navigate online notifications.
This commit is contained in:
parent
552988f514
commit
ccba88e775
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue