From 6a53970791bfa048c5259602b732b965e2cb93f6 Mon Sep 17 00:00:00 2001 From: Juan Monetta Date: Fri, 8 Dec 2023 15:33:15 -0300 Subject: [PATCH] Enter on time box focus the code --- CHANGELOG.md | 1 + src-dbg/flow_storm/debugger/ui/flows/code.clj | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79d487b1..24489ac7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ ### Bugs fixed - Fix "Add to prints" not showing on Vanilla + - Enter on time box focus the code ## 3.8.6 (17-11-2023) diff --git a/src-dbg/flow_storm/debugger/ui/flows/code.clj b/src-dbg/flow_storm/debugger/ui/flows/code.clj index 8d984411..7701aa45 100644 --- a/src-dbg/flow_storm/debugger/ui/flows/code.clj +++ b/src-dbg/flow_storm/debugger/ui/flows/code.clj @@ -501,9 +501,11 @@ (defn- trace-pos-pane [flow-id thread-id] (let [curr-trace-text-field (doto (text-field {:initial-text "1" :on-return-key (fn [idx-str] - (let [target-idx (dec (Long/parseLong idx-str)) + (let [[forms-scroll-pane] (obj-lookup flow-id thread-id "forms_scroll") + target-idx (dec (Long/parseLong idx-str)) target-tentry (runtime-api/timeline-entry rt-api flow-id thread-id target-idx :at)] - (jump-to-coord flow-id thread-id target-tentry))) + (jump-to-coord flow-id thread-id target-tentry) + (.requestFocus forms-scroll-pane))) :align :right}) (.setPrefWidth 80)) separator-lbl (label "/")