Weston Ruter
40d04f7d71
Code Editor: Allow saving with Ctrl/Cmd+S in Theme/Plugin Editors.
...
* Keyboard shortcuts work when CodeMirror is not enabled (due to syntax highlighting not being enabled), and when the user is not focused inside the CodeMirror editor.
* The autocomplete trigger is switched from `keyup` to `inputRead` to improve reliability, support IME composition, and prevent conflicts with modifier keys (e.g., releasing `Ctrl`/`Cmd` before `s` after a save).
* A `updateErrorNotice` method is exposed on the code editor instance to ensure validation errors are displayed when a save via shortcut is attempted, preventing "silent" failures. Otherwise, the linting error notice is only shown when focus leaves the editor.
* The form submission is modernized by replacing the deprecated jQuery `.submit()` shorthand with `.trigger( 'submit' )`.
Developed in https://github.com/WordPress/wordpress-develop/pull/10851
Props westonruter, Junaidkbr, evansolomon, desrosj, mukesh27, jonsurrell, spiraltee, chexee, andrewryno, tusharaddweb, gauri87, huzaifaalmesbah, ocean90, karmatosed, johnbillion, scribu, jcnetsys.
Fixes #17133 .
Built from https://develop.svn.wordpress.org/trunk@61588
git-svn-id: http://core.svn.wordpress.org/trunk@60899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-04 07:03:44 +00:00
..
2026-01-21 12:15:33 +00:00
2026-01-05 12:16:10 +00:00
2025-10-17 17:39:30 +00:00
2026-01-30 02:40:40 +00:00
2026-01-19 17:00:30 +00:00
2026-01-19 17:00:30 +00:00
2025-11-06 19:33:31 +00:00
2026-01-19 17:00:30 +00:00
2026-02-02 06:14:44 +00:00
2025-12-30 13:03:34 +00:00
2026-01-13 13:13:48 +00:00
2025-11-17 22:22:33 +00:00
2026-01-19 17:01:24 +00:00
2026-01-09 04:28:52 +00:00
2026-02-03 20:08:48 +00:00
2025-07-18 12:59:31 +00:00
2026-01-10 23:52:47 +00:00
2026-01-06 05:57:56 +00:00
2026-02-01 15:47:43 +00:00
2025-10-16 19:45:36 +00:00
2025-12-30 22:55:37 +00:00
2026-01-23 05:57:34 +00:00
2025-09-17 14:44:24 +00:00
2025-12-26 13:16:34 +00:00
2026-01-05 05:33:32 +00:00
2025-11-04 16:34:38 +00:00
2025-11-13 22:27:29 +00:00
2025-10-02 18:15:30 +00:00
2025-09-03 12:18:31 +00:00
2026-01-09 02:40:53 +00:00
2025-10-20 08:52:24 +00:00
2026-01-12 12:20:59 +00:00
2025-12-03 19:47:33 +00:00
2026-01-05 05:24:33 +00:00
2026-01-11 06:36:49 +00:00
2026-01-20 23:02:36 +00:00
2025-08-31 21:43:30 +00:00
2025-04-29 22:44:37 +00:00
2025-11-04 18:31:29 +00:00
2026-01-06 05:57:56 +00:00
2026-01-09 02:40:53 +00:00
2025-08-25 13:10:29 +00:00
2025-04-03 13:53:28 +00:00
2025-10-06 11:31:33 +00:00
2025-09-28 21:56:27 +00:00
2025-08-07 14:47:34 +00:00
2026-01-05 05:24:33 +00:00
2025-10-21 07:14:02 +00:00
2025-10-21 07:14:02 +00:00
2025-12-03 19:47:33 +00:00
2025-12-03 19:47:33 +00:00
2026-01-22 01:12:36 +00:00
2026-01-11 06:50:42 +00:00
2026-01-05 05:24:33 +00:00
2025-09-29 16:29:35 +00:00
2026-01-05 05:24:33 +00:00
2026-01-05 05:24:33 +00:00
2026-01-05 05:24:33 +00:00
2025-12-22 23:14:38 +00:00
2026-01-11 06:50:42 +00:00
2025-09-07 02:47:36 +00:00
2025-12-22 23:14:38 +00:00
2026-01-05 05:41:32 +00:00
2026-01-05 05:41:32 +00:00
2026-01-05 05:41:32 +00:00
2026-01-10 05:03:50 +00:00
2026-01-28 01:07:42 +00:00
2025-12-07 04:16:33 +00:00
2026-01-09 04:28:52 +00:00
2026-01-05 16:04:58 +00:00
2026-01-05 16:04:58 +00:00
2025-07-30 23:03:30 +00:00
2026-01-09 04:28:52 +00:00
2026-01-05 05:58:26 +00:00
2025-09-03 12:18:31 +00:00
2026-01-05 05:58:26 +00:00
2026-01-30 12:52:40 +00:00
2026-01-10 05:03:50 +00:00
2026-01-30 12:52:40 +00:00
2025-09-03 12:18:31 +00:00
2025-08-26 21:05:30 +00:00
2025-12-16 20:21:37 +00:00
2025-05-11 17:16:30 +00:00
2026-01-06 06:08:03 +00:00
2025-10-21 15:59:33 +00:00
2025-06-18 20:39:52 +00:00
2025-12-22 23:14:38 +00:00
2025-04-04 22:00:27 +00:00
2025-06-24 23:40:33 +00:00
2026-01-06 05:36:58 +00:00
2025-10-01 13:23:28 +00:00
2026-01-11 06:50:42 +00:00
2026-01-28 20:55:41 +00:00
2025-08-20 15:01:31 +00:00
2026-01-11 06:50:42 +00:00
2026-01-07 16:48:03 +00:00
2025-11-25 02:00:36 +00:00
2025-12-23 21:20:31 +00:00
2026-02-04 01:42:44 +00:00
2026-02-04 01:42:44 +00:00
2025-09-16 22:47:31 +00:00
2025-12-22 23:14:38 +00:00
2025-06-27 15:09:32 +00:00
2025-11-23 05:08:29 +00:00
2026-01-28 01:07:42 +00:00
2025-06-16 17:08:31 +00:00
2025-03-26 21:42:27 +00:00
2025-12-22 23:14:38 +00:00
2026-01-06 06:08:03 +00:00
2026-01-12 12:20:59 +00:00
2026-02-01 10:50:39 +00:00
2026-02-02 05:47:43 +00:00
2026-01-11 06:50:42 +00:00
2026-01-11 06:50:42 +00:00
2025-12-16 20:21:37 +00:00
2026-01-05 05:33:32 +00:00
2026-01-10 05:29:48 +00:00
2026-01-06 06:08:03 +00:00
2025-12-03 20:54:33 +00:00
2025-10-21 14:00:27 +00:00
2026-01-05 05:53:29 +00:00
2025-10-21 14:03:27 +00:00
2026-01-09 11:47:48 +00:00
2025-12-16 20:21:37 +00:00
2026-01-19 16:58:45 +00:00
2026-01-23 17:03:36 +00:00
2026-01-09 02:26:54 +00:00
2026-01-06 05:36:58 +00:00
2026-01-28 22:43:42 +00:00
2025-10-09 22:05:40 +00:00
2026-01-20 23:02:36 +00:00
2026-01-10 05:29:48 +00:00
2026-02-04 01:42:44 +00:00
2025-12-22 20:45:31 +00:00
2026-01-19 17:02:45 +00:00
2026-01-12 12:20:59 +00:00
2026-01-11 06:50:42 +00:00
2026-01-30 02:40:40 +00:00
2025-09-11 10:13:27 +00:00
2026-01-09 02:40:53 +00:00
2026-01-06 05:36:58 +00:00
2025-09-28 23:40:35 +00:00
2026-01-20 18:10:33 +00:00
2026-02-03 19:31:46 +00:00
2025-12-26 13:16:34 +00:00
2025-10-17 17:14:32 +00:00
2025-10-27 16:35:36 +00:00
2025-05-26 11:20:35 +00:00
2025-08-27 13:42:30 +00:00
2025-06-27 15:09:32 +00:00
2026-01-11 06:50:42 +00:00
2026-01-11 06:50:42 +00:00
2026-01-27 17:54:35 +00:00
2025-11-03 23:47:33 +00:00
2026-01-10 05:29:48 +00:00
2026-01-06 06:08:03 +00:00
2026-01-28 20:55:41 +00:00
2025-08-31 21:43:30 +00:00
2026-01-05 04:33:34 +00:00
2026-01-06 06:08:03 +00:00
2026-01-06 05:57:56 +00:00
2025-09-03 12:18:31 +00:00
2026-01-29 18:15:42 +00:00
2026-02-04 01:42:44 +00:00
2026-01-05 06:04:33 +00:00
2025-08-27 10:34:28 +00:00
2026-01-06 06:08:03 +00:00
2025-10-15 17:14:39 +00:00
2025-11-04 19:51:35 +00:00
2026-01-05 12:16:10 +00:00
2026-01-05 16:04:58 +00:00
2026-01-11 06:36:49 +00:00
2026-01-05 12:16:10 +00:00
2026-01-11 06:50:42 +00:00
2026-01-09 02:48:51 +00:00
2026-01-06 05:57:56 +00:00
2025-10-21 02:35:31 +00:00
2026-02-04 07:03:44 +00:00
2026-01-19 16:58:45 +00:00
2026-01-10 18:30:59 +00:00