forgejo/web_src/css
Danko Aleksejevs 36b6444f34 Remove tab key handling in markdown editor, add toolbar buttons instead, re #4072 #4142 (#4263)
We haven't decided much (to my knowledge), and I've been using the main branch in production (as one does) and found out even I myself rely on Tab sometimes working to move focus and have been caught off guard by it indenting lines instead.

So this removes Tab handling and instead adds two new buttons to the toolbar. The indentation logic is unchanged (other than now focusing the textarea during button handling, to ensure execCommand works, and thus undo history is preserved).

I'm not sure which terminology to use in tooltips. Could also add keyboard shortcuts for the whole toolbar eventually, but as is this is hopefully an better solution to the problems I previously created than un-merging the whole thing :)

<img width="414" alt="Screenshot with two new buttons" src="/attachments/b7af3aa4-a195-48d1-be0a-1559f25dce8e">

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4263
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Danko Aleksejevs <danko@very.lv>
Co-committed-by: Danko Aleksejevs <danko@very.lv>
2024-06-30 13:03:32 +00:00
..
chroma
codemirror
editor Remove tab key handling in markdown editor, add toolbar buttons instead, re #4072 #4142 (#4263) 2024-06-30 13:03:32 +00:00
features Size/gap changes and cleanup in commit graph (#4214) 2024-06-24 18:59:57 +00:00
markup Fix margin above headline in rendered org-mode (#4076) 2024-06-11 03:34:21 +00:00
modules Change --border-radius-circle to --border-radius-full (gitea#30936) 2024-05-27 13:15:20 +02:00
repo Merge pull request '[gitea] week 2024-22 cherry pick (gitea/main -> forgejo)' (#3917) from earl-warren/wcp/2024-22 into forgejo 2024-05-28 10:50:48 +00:00
shared
standalone
themes [FEAT] Adds x-mode-only anchor styles to display images based if the theme is light or dark mode. (#3985) 2024-06-09 10:50:53 +00:00
actions.css Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
admin.css
base.css chore: rename class issue-title-buttons to button-row 2024-06-28 13:11:16 +05:00
dashboard.css
explore.css
font_i18n.css
form.css [FEAT] expose fuzzy search for issues/repo (#4160) 2024-06-17 18:58:24 +00:00
helpers.css Merge pull request 'Replace gt-word-break with tw-break-anywhere' (#4102) from 0ko/forgejo:ui-replace-gt-word-break into forgejo 2024-06-11 10:39:03 +00:00
home.css
index.css
install.css UI improvements to optional sections in installation page (#4062) 2024-06-07 17:57:54 +00:00
org.css Fix org view on mobile for members (#3949) 2024-06-04 04:08:54 +00:00
repo.css ui: improve button gap consistency 2024-06-28 13:11:32 +05:00
review.css
user.css Unify vertical and horizontal paddings in markup file view (#3944) 2024-05-31 03:38:45 +00:00