1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-26 18:20:57 +00:00
forgejo/web_src
Beowulf ca07340093 [v11.0/forgejo] fix(ui): erroneous list continuation on Cmd+Enter on macOS (#8262)
**Manual Backport:** https://codeberg.org/forgejo/forgejo/pulls/8170

The line continuation code in the Markdown editor ignored Enter presses if Ctrl, Alt or Shift were being held. This now also accounts for Cmd on macOS (which browsers represent as metaKey).

### Tests

- Use Safari (on macOS)
- create a new issue in a repository
- start writing a list (with - one[enter]- two)
- now press Cmd+Enter
- verify that while the form is being submitted, no new line got visually added

(cherry picked from commit 39e6785da0)

Co-authored-by: Danko Aleksejevs <danko@very.lv>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8262
Reviewed-by: Danko Aleksejevs <danko@very.lv>
2025-06-23 21:55:22 +02:00
..
css [v11.0/forgejo] fix(ui): center footer links (#7937) 2025-05-23 00:41:21 +02:00
fomantic Lock file maintenance (forgejo) (#7317) 2025-03-24 06:45:11 +00:00
js [v11.0/forgejo] fix(ui): erroneous list continuation on Cmd+Enter on macOS (#8262) 2025-06-23 21:55:22 +02:00
svg Alt Linux Apt-Rpm repository support for Forgejo packages. (#6351) 2025-01-22 14:01:49 +00:00