diff --git a/Changelog.md b/Changelog.md index f9e2e6c85..d02d636e2 100644 --- a/Changelog.md +++ b/Changelog.md @@ -104,7 +104,10 @@ Contributions are very welcome, the hard work is done! * Internationalize controller rescue\_from text [#6554](https://github.com/diaspora/diaspora/pull/6554) # Bug fixes -Fix plural rules handling more than wanted as "one" [#6630](https://github.com/diaspora/diaspora/pull/6630) +* Fix plural rules handling more than wanted as "one" [#6630](https://github.com/diaspora/diaspora/pull/6630) + +# Features +* Keyboard shortcuts now do work on profile pages as well [#6647](https://github.com/diaspora/diaspora/pull/6647/files) # 0.5.6.0 diff --git a/app/assets/javascripts/app/pages/profile.js b/app/assets/javascripts/app/pages/profile.js index c5aa8b468..3d707370f 100644 --- a/app/assets/javascripts/app/pages/profile.js +++ b/app/assets/javascripts/app/pages/profile.js @@ -89,6 +89,7 @@ app.pages.Profile = app.views.Base.extend({ if( this.model.get("is_own_profile") ) { app.publisher = new app.views.Publisher({collection : app.stream.items}); } + app.shortcuts = app.shortcuts || new app.views.StreamShortcuts({el: $(document)}); return new view({model: app.stream}); }, diff --git a/features/desktop/keyboard_navigation.feature b/features/desktop/keyboard_navigation.feature index 99e286e0f..aed65c3f6 100644 --- a/features/desktop/keyboard_navigation.feature +++ b/features/desktop/keyboard_navigation.feature @@ -46,3 +46,13 @@ Feature: Keyboard navigation When I press the "J" key somewhere And I press the "C" key somewhere Then the first comment field should be open + + Scenario: navigate downwards on a profile page + When I am on "alice@alice.alice"'s page + And I press the "J" key somewhere + Then post 1 should be highlighted + And I should have navigated to the highlighted post + + When I press the "J" key somewhere + Then post 2 should be highlighted + And I should have navigated to the highlighted post