gui: ESC key interrupts active agent (Stop action)

This commit is contained in:
Levi Neely 2026-08-01 12:03:29 +02:00
parent cc472da496
commit ef63dfd398
1 changed files with 7 additions and 0 deletions

View File

@ -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