forgejo/web_src/js/features/comp
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
..
ComboMarkdownEditor.js [v11.0/forgejo] fix(ui): erroneous list continuation on Cmd+Enter on macOS (#8262) 2025-06-23 21:55:22 +02:00
ConfirmModal.js Change green buttons to primary color (#27099) 2023-09-18 22:05:31 +00:00
EasyMDEToolbarActions.js s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
LabelEdit.js replace jquery-minicolors with coloris (#30055) 2024-04-07 11:02:33 +02:00
Paste.js Improve textarea paste (part of gitea#31948) 2024-09-09 10:04:50 +02:00
QuickSubmit.js Remove jQuery from the "quick submit" handler (#29200) 2024-02-17 23:24:31 +01:00
ReactionSelector.js fix(ui): allow unreacting from comment popover 2024-08-09 10:17:04 -06:00
SearchUserBox.js Add DISABLE_ORGANIZATIONS_PAGE and DISABLE_CODE_PAGE settings for explore pages and fix an issue related to user search (#32288) 2024-10-27 11:27:40 +01:00
TextExpander.js Update JS dependencies, remove space after emoji completion (#25266) 2023-06-18 08:38:47 +00:00
WebHookEditor.js Implement CSS-only input toggling, refactor related forms 2024-08-21 15:03:19 +02:00