1
0
REI-Fixed/app/javascript/mastodon/features/compose/containers
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
..
autosuggest_account_container.js Improve eslint rules (#3147) 2017-05-20 17:31:47 +02:00
compose_form_container.js Don't autofocus the compose form (#16517) 2022-12-15 17:37:05 +01:00
emoji_picker_dropdown_container.js Remove duplicate frequently used emojis (#7064) 2018-04-07 14:53:11 +02:00
language_dropdown_container.js Add language dropdown to compose in web UI (#18420) 2022-05-16 11:18:35 +02:00
navigation_container.js Fix logout link not working in safari (#16574) 2021-08-06 12:14:13 +02:00
poll_button_container.js Add UI for creating polls (#10184) 2019-03-06 04:53:37 +01:00
poll_form_container.js Add emoji suggestions to CW and poll option fields (#10555) 2019-05-09 22:10:27 +02:00
privacy_dropdown_container.js Add dropdown for boost privacy in boost confirmation modal (#15704) 2021-02-11 00:53:12 +01:00
reply_indicator_container.js Add editing for published statuses (#17320) 2022-02-10 00:15:30 +01:00
search_container.js Improve eslint rules (#3147) 2017-05-20 17:31:47 +02:00
search_results_container.js Add search results pagination to web UI (#11409) 2019-07-27 05:49:50 +02:00
sensitive_button_container.js Make “Mark media as sensitive” properly translatable (#15051) 2020-10-27 03:05:50 +01:00
spoiler_button_container.js Change the title of spoiler button by state 2018-03-13 15:58:55 +09:00
upload_button_container.js Fix WebUI allowing to upload more items than the limit (#12300) 2019-11-07 09:07:03 +02:00
upload_container.js Add the ability to edit media attachment metadata for any unattached media (#20402) 2022-11-11 21:22:17 +01:00
upload_form_container.js Add ability to specify alternative text for media attachments (#5123) 2017-09-28 15:31:31 +02:00
upload_progress_container.js Fix upload progress not communicating processing phase in web UI (#19530) 2022-10-29 20:05:53 +02:00
warning_container.js Change "Direct" status visibility to "Only people I mention" in web UI (#18146) 2022-04-29 00:24:31 +02:00