1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00
forgejo/templates/shared
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
..
actions Optimize runner-tags layout to enhance visual experience (#31258) 2024-06-09 16:04:57 +02:00
search [FEAT] expose fuzzy search for issues/repo (#4160) 2024-06-17 18:58:24 +00:00
secrets Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
user Better logic for showing user feed/public activity elements (#4189) 2024-06-24 08:19:11 +00:00
variables Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
webhook Change webhook-type in create-view (#29114) 2024-02-17 23:24:30 +01:00
blocked_users_list.tmpl templates: Safe & Escape no longer exist 2024-02-26 22:30:27 +01:00
combomarkdowneditor.tmpl Remove tab key handling in markdown editor, add toolbar buttons instead, re #4072 #4142 (#4263) 2024-06-30 13:03:32 +00:00
issueicon.tmpl Performance improvements for pull request list page (#29900) 2024-03-26 19:04:26 +01:00
issuelist.tmpl Fix long branch name overflows (https://github.com/go-gitea/gitea/pull/30345) 2024-05-24 22:11:37 +05:00
label_filter.tmpl add label filters in org/{org_name}/issues 2024-04-04 17:57:11 +05:30
repo_search.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
searchbottom.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
searchfile.tmpl fix code search template 2024-04-11 14:52:37 +00:00