diff --git a/gui/ChatPane.qml b/gui/ChatPane.qml index 727285c..549ce24 100644 --- a/gui/ChatPane.qml +++ b/gui/ChatPane.qml @@ -490,25 +490,25 @@ Item { - // Sloppy focus — focus when mouse stops moving inside pane - MouseArea { - anchors.fill: parent - hoverEnabled: true - acceptedButtons: Qt.NoButton - propagateComposedEvents: true - onPositionChanged: { - sloppyTimer.restart() - } - onExited: { - sloppyTimer.stop() + // Sloppy focus — focus prompt when mouse hovers inside pane + HoverHandler { + id: sloppyHover + onHoveredChanged: { + if (hovered) { + sloppyTimer.restart() + } else { + sloppyTimer.stop() + } } } Timer { id: sloppyTimer - interval: 100 + interval: 300 onTriggered: { - paneRoot.focus = true - panePrompt.forceActiveFocus() + if (!panePrompt.activeFocus) { + paneRoot.focus = true + panePrompt.forceActiveFocus() + } } }