Skip to content

Commit

Permalink
feat: add shortcut 'e' top open article details in compact mode
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfgang <[email protected]>
  • Loading branch information
wofferl committed Nov 26, 2024
1 parent 0736a50 commit aa4af13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can also check [on GitHub](https://github.com/nextcloud/news/releases), the
## [25.x.x]
### Changed
- Items list style in compact mode to improve readability (and better match v24's style) (#2918)
- add shortcuts `enter` and `esc` to open/close article details in compact mode
- add shortcuts `e` or `enter` to open and `esc` to close article details in compact mode

### Fixed
- scrollbar in sidebar subscribe area / move new folder button in same area than subscribe (#2932)
Expand Down
6 changes: 6 additions & 0 deletions src/components/feed-display/FeedItemDisplayList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
<button v-shortkey="['shift','a']" class="hidden" @shortkey="$emit('mark-read')">
markFeedRead
</button>
<button v-if="compactMode"
v-shortkey="['e']"
class="hidden"
@shortkey="selectedItem && $emit('show-details')">
showDetails
</button>
<button v-if="compactMode"
v-shortkey="['enter']"
class="hidden"
Expand Down
2 changes: 2 additions & 0 deletions src/components/modals/HelpModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
</tr>
<tr>
<td>
<kbd>e</kbd>
/
<kbd>enter</kbd>
</td>
<td>
Expand Down

0 comments on commit aa4af13

Please sign in to comment.