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

@@ -1,5 +1,5 @@
// Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.21 R95";
window.CHGRID_WEB_VERSION = "2026.02.21 R96";
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
window.CHGRID_TIME_ZONE = "America/Detroit";

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 {