Implement hotkeys for web UI (#5164)
* Fix #2102 - Implement hotkeys Hotkeys on status list: - r to reply - m to mention author - f to favourite - b to boost - enter to open status - p to open author's profile - up or k to move up in the list - down or j to move down in the list - 1-9 to focus a status in one of the columns - n to focus the compose textarea - alt+n to start a brand new toot - backspace to navigate back * Add navigational hotkeys The key g followed by: - s: start - h: home - n: notifications - l: local timeline - t: federated timeline - f: favourites - u: own profile - p: pinned toots - b: blocked users - m: muted users * Add hotkey for focusing search, make escape un-focus compose/search * Fix focusing notifications column, fix hotkeys in compose textarea
Showing
- app/javascript/mastodon/actions/compose.js 7 additions, 0 deletionsapp/javascript/mastodon/actions/compose.js
- app/javascript/mastodon/components/autosuggest_textarea.js 12 additions, 2 deletionsapp/javascript/mastodon/components/autosuggest_textarea.js
- app/javascript/mastodon/components/scrollable_list.js 1 addition, 27 deletionsapp/javascript/mastodon/components/scrollable_list.js
- app/javascript/mastodon/components/status.js 91 additions, 25 deletionsapp/javascript/mastodon/components/status.js
- app/javascript/mastodon/components/status_list.js 29 additions, 2 deletionsapp/javascript/mastodon/components/status_list.js
- app/javascript/mastodon/features/compose/components/search.js 2 additions, 0 deletions...javascript/mastodon/features/compose/components/search.js
- app/javascript/mastodon/features/notifications/components/notification.js 90 additions, 25 deletions...astodon/features/notifications/components/notification.js
- app/javascript/mastodon/features/notifications/containers/notification_container.js 8 additions, 1 deletion...atures/notifications/containers/notification_container.js
- app/javascript/mastodon/features/notifications/index.js 27 additions, 1 deletionapp/javascript/mastodon/features/notifications/index.js
- app/javascript/mastodon/features/status/index.js 129 additions, 22 deletionsapp/javascript/mastodon/features/status/index.js
- app/javascript/mastodon/features/ui/index.js 183 additions, 40 deletionsapp/javascript/mastodon/features/ui/index.js
- app/javascript/mastodon/reducers/compose.js 2 additions, 0 deletionsapp/javascript/mastodon/reducers/compose.js
- app/javascript/styles/basics.scss 8 additions, 5 deletionsapp/javascript/styles/basics.scss
- app/javascript/styles/components.scss 20 additions, 4 deletionsapp/javascript/styles/components.scss
- package.json 1 addition, 0 deletionspackage.json
- yarn.lock 21 additions, 0 deletionsyarn.lock
Loading
Please register or sign in to comment