Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -47,8 +47,9 @@ class app.Shortcuts · 46 unmodified lines | ||
| 47 | 47 | when 27 |
| 48 | 48 | @trigger 'escape' |
| 49 | 49 | when 32 |
| 50 | − @trigger 'pageDown' | |
| 51 | − false | |
| 50 | + if not @lastKeypress or @lastKeypress < Date.now() - 1000 | |
| 51 | + @trigger 'pageDown' | |
| 52 | + false | |
| 52 | 53 | when 33 |
| 53 | 54 | @trigger 'pageUp' |
| 54 | 55 | when 34 |
| @@ -127,3 +128,5 @@ class app.Shortcuts · 72 unmodified lines | ||
| 127 | 128 | if event.which is 63 and not event.target.value |
| 128 | 129 | @trigger 'help' |
| 129 | 130 | false |
| 131 | + else | |
| 132 | + @lastKeypress = Date.now() | |