diff --git a/gui/main.qml b/gui/main.qml index da6dbda..b5d1c22 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -59,10 +59,16 @@ ApplicationWindow { palette.disabled.light: theme.lightColor palette.disabled.shadow: theme.shadowColor - Keys.onEscapePressed: { - if (ollie.activeState !== "idle") { - event.accepted = true - ollie.interrupt() + Shortcut { + sequence: "Escape" + onActivated: { + console.log("ESC shortcut, activeState:", ollie.activeState) + if (ollie.activeState !== "idle") { + console.log("ESC: calling interrupt()") + ollie.interrupt() + } else { + console.log("ESC: ignored (idle)") + } } }