List of steps to reproduce (step by step, including full links if applicable):
- Edit a page in VisualEditor
- Open an existing template for editing
- Type something in some template data field
- Press Ctrl+backspace
What happens?:
The field is removed (same as if you clicked on the little trash icon above it)
What should have happened instead?:
The last word in the textarea is deleted
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
Chrome 98 on Ubuntu 20.04.
The specific article and template where I encountered this is https://wikitech.wikimedia.org/wiki/Deployments -> edit "Wednesday, February 16" section -> "21:00–22:00 UTC, UTC late backport window" template -> "Changes" field.
Acceptance criteria:
- Make Ctrl+Backspace work only on Mac, not on PC.
- Change the keyboard event handler so it doesn't do anything when the shortcut was pressed with the focus being in an <input> or <textarea>.
- For consistency, change the Ctrl+Shift+Up/Down shortcuts the same way.
- Make sure all 4 Ctrl+Shift+Left/Right/Up/Down can be used in text fields without triggering unexpected behavior.
- No update to the help page needed.