1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-12-12 21:58:59 +09:00
whippy-edition/app/javascript/mastodon/features/compose/components
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
..
action_bar.js Change layout of posts in web UI (#19423) 2022-10-25 19:02:21 +02:00
autosuggest_account.js Display full username in tooltip on search and autosuggest #7478 (#7920) 2018-07-01 04:16:13 +02:00
character_counter.js Count all URLs in text as 23 characters flat, do not count domain part of usernames (#4427) 2017-07-29 00:06:29 +02:00
compose_form.js Don't autofocus the compose form (#16517) 2022-12-15 17:37:05 +01:00
emoji_picker_dropdown.js Fix compose form submission reloading web interface (#19762) 2022-11-05 13:43:37 +01:00
language_dropdown.js Fix opening the language picker scrolling the single-column view to the top (#19983) 2022-11-08 03:52:52 +01:00
navigation_bar.js Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
poll_button.js Add UI for creating polls (#10184) 2019-03-06 04:53:37 +01:00
poll_form.js Adding 12 hours option for polls (#21131) 2022-12-15 16:20:34 +01:00
privacy_dropdown.js Change “Only people I mention” to “Mentioned people only” (#18291) 2022-05-03 12:30:40 +02:00
reply_indicator.js Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
search_results.js Fix button to dismiss suggestions not showing up in search results (#19325) 2022-10-09 12:28:59 +02:00
search.js Fix hidden label causing accessibility issue for search inputs (#21275) 2022-12-15 16:20:21 +01:00
text_icon_button.js Fix compose form submission reloading web interface (#19762) 2022-11-05 13:43:37 +01:00
upload_button.js Improve wording of the “Add media” button tooltip (#13954) 2020-06-26 00:14:29 +02:00
upload_form.js Fix upload progress not communicating processing phase in web UI (#19530) 2022-10-29 20:05:53 +02:00
upload_progress.js Fix upload progress not communicating processing phase in web UI (#19530) 2022-10-29 20:05:53 +02:00
upload.js Add the ability to edit media attachment metadata for any unattached media (#20402) 2022-11-11 21:22:17 +01:00
warning.js Add option to reduce motion (#5393) 2017-10-16 09:36:15 +02:00