Reword code comments in plain technical language

Comments only, no code changes. Replaces vague or personified phrasing
with explicit statements of what the code does and why, uses bullet
lists for multi-case behavior, and fixes the settings path in
WindowSettings.h (~/.config/sloposk/sloposk.conf).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-03 19:58:59 +01:00
co-authored by Claude Opus 5.5
parent 5e4d4051f3
commit 23e957660f
53 changed files with 232 additions and 226 deletions
+3 -3
View File
@@ -30,9 +30,9 @@ Item {
return modifierModes[modifier] ?? KeyboardController.Off
return KeyboardController.Off
}
// Shift shows locking with its glyph; the others turn accent-coloured.
// Accent color for locked modifiers. Shift is excluded: its glyph shows the lock.
readonly property bool locked: latch === KeyboardController.Locked && keyType !== "shift"
// Character keys darken when pressed; function keys lighten (as on iPad).
// Light background: character keys at rest, function keys while pressed or latched (as on iPad).
readonly property bool lit: (isCharacter !== pressed) || latch !== KeyboardController.Off
readonly property var defaultGlyphs: ({
@@ -46,7 +46,7 @@ Item {
return ["⇧", "⬆", "⇪"][shiftMode]
return label !== "" ? label : (defaultGlyphs[keyType] ?? "")
}
// Count code points, not UTF-16 units, so emoji glyphs aren't treated as words.
// Multi-character label (e.g. "return"). Counts code points, not UTF-16 units, so an emoji counts as one.
readonly property bool isWord: [...displayLabel].length > 1 && !isCharacter
x: keyX