mastodon/app/javascript/mastodon
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
..
actions Fix being unable to react with the keycap number sign emoji (#22231) 2022-12-15 16:18:39 +01:00
components Change dropdown menu to contain “Copy link to post” even for non-public posts (#21316) 2022-12-15 15:43:16 +01:00
containers Fix wasteful request to /api/v1/custom_emojis when not logged in (#22326) 2022-12-15 14:07:34 +01:00
features Don't autofocus the compose form (#16517) 2022-12-15 17:37:05 +01:00
locales Render current day formats in the client timezone (#21878) 2022-12-15 16:35:25 +01:00
middleware
reducers Change default reply language to be default language when replying to a translated reply (#22272) 2022-12-13 19:41:53 +01:00
selectors Change public accounts pages to mount the web UI (#19319) 2022-10-20 14:35:29 +02:00
service_worker Disable media cache on service worker (#19471) 2022-10-26 18:21:36 +02:00
store
utils
api.js Replace CancelToken to AbortSignal (#19352) 2022-10-14 03:16:37 +02:00
base_polyfills.js
blurhash.js
common.js
compare_id.js
extra_polyfills.js Replace CancelToken to AbortSignal (#19352) 2022-10-14 03:16:37 +02:00
initial_state.js Change sign-in banner to reflect disabled or moved account status (#19773) 2022-11-05 18:28:13 +01:00
is_mobile.js Hide list panel from nav bar in mobile layout (#19337) 2022-10-10 21:41:25 +02:00
load_keyboard_extensions.js
load_polyfills.js Replace CancelToken to AbortSignal (#19352) 2022-10-14 03:16:37 +02:00
main.js Delay workbox import (#20376) 2022-11-11 01:33:59 +01:00
performance.js
permissions.js
ready.js Disable push notification when not logged in (#19272) 2022-10-03 18:15:47 +02:00
scroll.js
settings.js Add dismissable hints to various timelines in web UI (#19315) 2022-10-09 06:08:37 +02:00
stream.js
test_setup.js
uuid.js