Skip to content

Commit

Permalink
Enter on time box focus the code
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonettas committed Dec 8, 2023
1 parent d1edb22 commit 6a53970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 4 additions & 2 deletions src-dbg/flow_storm/debugger/ui/flows/code.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/")
Expand Down

0 comments on commit 6a53970

Please sign in to comment.