bastodon/app/javascript/mastodon/features
Arnout Engelen 9f63c428e1
Don't autofocus the compose form (#16517)
When opening a page such as /web/timelines/home in a desktop browser, the
cursor was automatically placed in the textarea of the compose form.

When using the keyboard for navigation (using a browser plugin like vimium or
vim vixen, or just to hit 'space' to scroll down a page), you have remember to
leave the field before using that.

Since you only visit the page to write a new post some of the time, this PR
attempts to have nothing focused initially (and require the user to click or
e.g. use 'tab' to focus the textarea).

Tested:
* /web/timeslines/home no longer autofocuses the compose box
* pressing the 'n' hotkey still focuses the compose box
* clicking 'reply' for a post still focuses the compose box
* replying to a CW'ed post still focuses the compose box
* introducing the CW field still focuses the CW field
* introducing the CW field for a reply still focuses the CW field
* removing the CW field still focuses the compose box
* /web/statuses/new still autofocuses the compose box

fixes #15862
2022-12-15 17:37:05 +01:00
..
about Fix WebUI crash when listing server blocks and rationale is not available (#20408) 2022-11-11 21:23:03 +01:00
account Make handle more easily selectable on profile page (#21479) 2022-12-13 19:43:03 +01:00
account_gallery fix gif autoplay on iOS (#21422) 2022-11-27 20:46:23 +01:00
account_timeline Fix infinite loading instead of soft 404 for non-existing remote accounts (#21303) 2022-11-27 20:48:12 +01:00
audio Add warning for sensitive audio posts (#17885) 2022-08-13 15:39:05 +02:00
blocks Fix block/mute lists showing a follow button when unblocking a user (#18364) 2022-05-09 23:20:19 +02:00
bookmarked_statuses Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
closed_registrations_modal Fix closed registrations message not appearing in web UI (#19508) 2022-10-28 19:34:22 +02:00
community_timeline Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
compose Don't autofocus the compose form (#16517) 2022-12-15 17:37:05 +01:00
direct_timeline Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
directory Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
domain_blocks Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
emoji Remove use of DOMParser in front-end emoji rewriting code (#20758) 2022-11-17 11:24:59 +01:00
explore FormattedMessage must be used directly (#20982) 2022-12-15 16:20:46 +01:00
favourited_statuses Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
favourites Fix compose form submission reloading web interface (#19762) 2022-11-05 13:43:37 +01:00
filters Fix compose form submission reloading web interface (#19762) 2022-11-05 13:43:37 +01:00
follow_recommendations Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
follow_requests Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
followers Fix media, following and followers tabs in web UI (#19426) 2022-10-23 23:38:08 +02:00
following Fix media, following and followers tabs in web UI (#19426) 2022-10-23 23:38:08 +02:00
generic_not_found
getting_started Make the 'Trending now' header a link to Explore. (#21759) 2022-11-27 23:49:32 +01:00
hashtag_timeline set activation for tag follow button (#21629) 2022-12-15 17:04:52 +01:00
home_timeline Remove aria-pressed where it's redundant (#19912) 2022-11-08 17:31:32 +01:00
interaction_modal Fix confusing wording in interaction modal in web UI (#20302) 2022-11-10 08:49:48 +01:00
keyboard_shortcuts Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
list_adder
list_editor
list_timeline Fix compose form submission reloading web interface (#19762) 2022-11-05 13:43:37 +01:00
lists Change design of new list form in web UI (#19801) 2022-11-05 23:06:32 +01:00
mutes Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
notifications Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
picture_in_picture Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
pinned_statuses Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
privacy_policy Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
public_timeline Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
reblogs Fix compose form submission reloading web interface (#19762) 2022-11-05 13:43:37 +01:00
report Fix missing rules in report modal in web UI (#19387) 2022-10-18 19:33:11 +02:00
standalone/compose Remove code for rendering public and hashtag timelines outside the web UI (#19257) 2022-10-04 20:13:46 +02:00
status Fix expanded statuses not always being scrolled into view (#21797) 2022-11-28 16:42:04 +01:00
subscribed_languages_modal Fix “Change subscribed languages” crashing in some situations (#19268) 2022-10-03 02:56:12 +02:00
ui Fix typo in handler function call name (#21829) 2022-12-15 16:37:17 +01:00
video