1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-01 17:38:33 +00:00
forgejo/options/locale_next
Danko Aleksejevs d483dc674a Reimplement editor Tab handling with accessibility safeguards (#6813)
The primary goal is to balance having the editor work as expected by developers (with Tab key affecting indentation) while also not impeding keyboard navigation.

* Tab indents, Shift+Tab unindents, but only when that indent would be valid. E.g. moving existing list items down or up one level.
* Indenting a selection always works.
* When an "invalid" indent is attempted, nothing happens and a toast is shown with a hint to press again to leave the editor.
* Attempting the same action again allows the textarea lose focus by allowing the browser's default key handler.
* Pressing Esc also loses focus immediately.
* No tab handling happens until the text editor has been interacted with (other than just having been focused).
* Changing indentation in block quotes adds or removes quote levels instead.

Screenshot of the toast being shown:
a6287d29-4ce0-4977-aae8-ef1aff2ac89f

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6813
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Danko Aleksejevs <danko@very.lv>
Co-committed-by: Danko Aleksejevs <danko@very.lv>
2025-05-25 19:17:03 +02:00
..
locale_ar.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_be.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_bg.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_bn.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_bs.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_ca.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_cs-CZ.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_da.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_de-DE.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_el-GR.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_en-US.json Reimplement editor Tab handling with accessibility safeguards (#6813) 2025-05-25 19:17:03 +02:00
locale_eo.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_es-ES.json i18n: update of translations from Codeberg Translate 2025-05-17 10:37:51 +00:00
locale_et.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_fa-IR.json i18n: update of translations from Codeberg Translate (#7066) 2025-03-07 14:26:37 +00:00
locale_fi-FI.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_fil.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_fr-FR.json i18n: update of translations from Codeberg Translate 2025-05-17 10:37:51 +00:00
locale_gl.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_hi.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_hu-HU.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_id-ID.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_is-IS.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_it-IT.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_ja-JP.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_ko-KR.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_lt.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_lv-LV.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_ml-IN.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_nb_NO.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_nds.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_nl-NL.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_pl-PL.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_pt-BR.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_pt-PT.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_ru-RU.json i18n: update of translations from Codeberg Translate 2025-05-17 10:37:51 +00:00
locale_si-LK.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_sk-SK.json i18n: update of translations from Codeberg Translate 2025-04-24 06:35:00 +00:00
locale_sl.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_sr-SP.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_sv-SE.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_tr-TR.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_uk-UA.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_vi.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_yi.json Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
locale_zh-CN.json i18n: update of translations from Codeberg Translate 2025-05-08 06:08:41 +00:00
locale_zh-HK.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_zh-TW.json i18n: update of translations from Codeberg Translate 2025-05-01 09:50:01 +00:00