gearheads
/
mastodon
Archived
2
0
Fork 0
This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
mastodon/app
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
..
chewy Change algorithm of `tootctl search deploy` to improve performance (#18463) 2022-05-22 22:16:43 +02:00
controllers Fix single name variables on controller folder (#20092) 2022-12-15 17:11:58 +01:00
helpers Add Montenegrin (cnr) (#21013) 2022-12-15 16:40:57 +01:00
javascript Don't autofocus the compose form (#16517) 2022-12-15 17:37:05 +01:00
lib Fix inability to use local LibreTranslate without setting ALLOWED_PRIVATE_ADDRESSES (#21926) 2022-12-15 17:04:38 +01:00
mailers Add single splat to callback method definitions to avoid ArgumentError (#22246) 2022-12-13 20:03:16 +01:00
models Add "disabled" user filter for admin/accounts UI (#21282) 2022-12-15 17:30:47 +01:00
policies Fix getting a single EmailDomainBlock (#20846) 2022-11-17 10:55:50 +01:00
presenters Change sign-in banner to reflect disabled or moved account status (#19773) 2022-11-05 18:28:13 +01:00
serializers Fix punycoded local domains not being prettified in initial state (#21440) 2022-12-15 17:05:40 +01:00
services Fix unbounded recursion in account discovery (#22025) 2022-12-07 00:15:24 +01:00
validators Fix error when uploading malformed CSV import (#19509) 2022-10-28 23:30:44 +02:00
views Add "disabled" user filter for admin/accounts UI (#21282) 2022-12-15 17:30:47 +01:00
workers Fix typos in source documentation (#21046) 2022-12-15 15:57:26 +01:00