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:
@@ -1,8 +1,8 @@
|
||||
import QtQuick
|
||||
|
||||
// The dismiss key left floating while the keyboard is shrunk; see-through so
|
||||
// it hides less. Tap to bring the keyboard back; dragging is up to the owner
|
||||
// (the window manager's move).
|
||||
// Button shown in place of the keyboard while it is collapsed. Semi-transparent
|
||||
// so it covers less. Tap emits tapped() (expand); drag emits dragStarted() and
|
||||
// the parent starts the window manager's move.
|
||||
Item {
|
||||
id: button
|
||||
|
||||
@@ -28,7 +28,7 @@ Item {
|
||||
|
||||
TapHandler {
|
||||
id: tap
|
||||
// The move ends with a release that would otherwise count as a tap.
|
||||
// Set during a drag, so the release that ends the drag isn't treated as a tap.
|
||||
property bool moved: false
|
||||
onPressedChanged: if (pressed) moved = false
|
||||
onTapped: if (!moved) button.tapped()
|
||||
|
||||
Reference in New Issue
Block a user