From 4a098b80b3ce47820e8a841925430f44dc282cf4 Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Thu, 19 Nov 2026 04:01:34 +0800 Subject: [PATCH 1/2] Inspector sheet: no slide through the window as it opens The process sheet's closed place follows the window's height, and every change of its place was animated. A window that opens small and is then maximized, as every window is on the tablet, showed the closed sheet (PID, Quit, Force Quit) sliding down through it at start. It now slides only when it opens, closes or springs back from a drag. --- qml/Main.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qml/Main.qml b/qml/Main.qml index 710eee5..141e35d 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -342,11 +342,19 @@ Window { Item { id: slide readonly property real restY: win.narrow ? toolbar.height + filterRow.height - Ui.sp(6) : Math.round(win.height * 0.34) + // Slides only when it opens, closes or springs back from a drag. Its + // place also follows the window's size, and a window that opens + // small and is then maximized (as on the tablet) would otherwise + // show the closed sheet sliding down through it. + property bool sliding: false + function slideNow() { sliding = true; slideEnd.restart() } + Timer { id: slideEnd; interval: 260; onTriggered: slide.sliding = false } + Connections { target: inspectSheet; function onShownChanged() { slide.slideNow() } } width: parent.width height: parent.height - restY y: inspectSheet.shown ? restY : parent.height Behavior on y { - enabled: !handleMa.drag.active + enabled: slide.sliding && !handleMa.drag.active NumberAnimation { duration: 200; easing.type: Easing.OutCubic } } Loader { @@ -381,6 +389,7 @@ Window { drag.minimumY: slide.restY drag.maximumY: inspectSheet.height onReleased: { + slide.slideNow() if (slide.y > slide.restY + Ui.sp(80)) win.closeInspector() slide.y = Qt.binding(() => inspectSheet.shown ? slide.restY : inspectSheet.height) From 12718b2d2f990567613055ba88015fc664204141 Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Thu, 19 Nov 2026 04:17:59 +0800 Subject: [PATCH 2/2] A tap outside the text field being typed in ends the typing On a tablet a search field kept the focus, and with it the on-screen keyboard, until Escape or Enter. A tap or click anywhere outside the focused field's box (its icon and clear button count as inside) now hands the focus back to the window, as on a phone, and the keyboard closes. The tap still reaches what was tapped: the press is only watched, from an item over the whole window. --- qml/Main.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qml/Main.qml b/qml/Main.qml index 141e35d..20c93e8 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -141,6 +141,26 @@ Window { Shortcut { sequences: ["Return", "Enter"]; enabled: win.overlay === "actions" && !win.asking; onActivated: rowMenu.activate() } Item { id: keyCatcher; focus: true } + // A tap or click anywhere outside the text field being typed in ends the + // typing, as on a phone: the field lets go of the focus, and with it the + // on-screen keyboard goes. Watched from on top of everything without + // taking the press: what was tapped still gets it. + Item { + anchors.fill: parent + z: 1000 + PointHandler { + onActiveChanged: { + if (!active || !win.typing) + return + // The field's whole box counts as inside: its icon, its clear button. + var box = win.activeFocusItem.parent + var p = box.mapFromItem(null, point.scenePosition.x, point.scenePosition.y) + if (!box.contains(p)) + keyCatcher.forceActiveFocus() + } + } + } + // ------------------------------------------------------------ main column Item { id: main