Treat apostrophes as word characters for Ctrl+Arrow

This commit is contained in:
Jage9
2026-02-21 04:01:20 -05:00
parent 7d0b38ffa4
commit c35d2e1189
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ export function mapTextInputKey(code: string, key: string): string {
}
function isWordCharacter(ch: string): boolean {
return /[A-Za-z0-9_]/.test(ch);
return /[A-Za-z0-9_'\u2019]/.test(ch);
}
export function moveCursorWordLeft(text: string, cursorPos: number): number {