From ef63dfd3981d83f75040577691f7ceb9a3adbabe Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sat, 1 Aug 2026 12:03:29 +0200 Subject: [PATCH] gui: ESC key interrupts active agent (Stop action) --- gui/main.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui/main.qml b/gui/main.qml index 533dd6c..da6dbda 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -59,6 +59,13 @@ ApplicationWindow { palette.disabled.light: theme.lightColor palette.disabled.shadow: theme.shadowColor + Keys.onEscapePressed: { + if (ollie.activeState !== "idle") { + event.accepted = true + ollie.interrupt() + } + } + // Deferred scroll timer — fires once after model changes settle Timer { id: scrollTimer