Commit d1a4a52
committed
Admin: Add Ctrl/Cmd+Enter keyboard shortcut to submit comment forms.
Allow submitting the comment reply/edit form in wp-admin with Ctrl+Enter (Windows/Linux) or Cmd+Enter (Mac), matching the existing frontend comment form behavior added in ticket #41545. The handler is added to the existing keydown event on the comment textarea, preventing listener stacking and respecting IME composition state.
Implements Trac #48536.1 parent e12ddb3 commit d1a4a52
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1049 | 1055 | | |
1050 | 1056 | | |
1051 | 1057 | | |
| |||
0 commit comments