Ctrl+Backspace Fix for Win32 Text Boxes
Makes Ctrl+Backspace delete the previous word in Win32 text boxes instead of inserting a control character
Author: Kitsune
Win32 text boxes often lack previous-word deletion functionality, resulting in
the Ctrl+Backspace hotkey inserting the Delete control character instead of
deleting the previous word.
This mod resolves this behavior by adding previous-word deletion functionality
to those Edit controls.
| Before |
 |
| After |
 |
Features & behavior
- Supports wrapped
Edit controls used in .NET WinForms, Delphi VCL, and
ATL/WTL apps.
- Handles Unicode whitespace, punctuation, and symbols for word-wise deletion.
- Groups consecutive Japanese kana (Hiragana & Katakana) by script for word-wise
deletion.
- Groups consecutive Korean Hangul (syllables & jamo) as words for word-wise
deletion.
- Steps back one character at a time through Chinese, Japanese, and Korean
ideographs.
- Deletes masked text before the caret as a single block in password fields to
avoid leaking word boundaries.
Notes & limitations
- In hotkey text boxes, pressing
Ctrl+Backspace deletes the text instead of
assigning the hotkey.
- In masked text boxes, pressing
Ctrl+Backspace deletes the placeholder
characters, breaking the input mask and preventing further input into those
missing slots.
- In legacy ANSI apps on CJK system locales, pressing
Ctrl+Backspace on
multi-byte text deletes the wrong range because this mod calculates word
boundaries using Unicode offsets.
- Custom-drawn text boxes, such as those in Qt apps, are unaffected because they
do not utilize standard Win32
Edit controls. Most custom-drawn UI frameworks
already handle their own previous-word deletion functionality.