Skip to content

Commit

Permalink
Fix alt-key debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Oct 3, 2024
1 parent d9e1d4c commit e2a4403
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

> Committed but unreleased changes are put here, at the top. Older releases are detailed chronologically below.
## 2.22.3 (2024-10-03)

#### Fixed

- `nested-grid` alt-key debugging actually uses the alt-key (not ctrl).

## 2.22.2 (2024-10-03)

#### Added

- New closure-define, `re-com.config/debug-parts?` (boolean): overrides goog.DEBUG to enable some debug features.
Expand Down
2 changes: 1 addition & 1 deletion src/re_com/debug.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
args))

(defn log-on-alt-click* [event & {:as args}]
(when (.-ctrlKey event) (log args)))
(when (.-altKey event) (log args)))

(defn log-on-alt-click [{:as args} & {:keys [show-all-args?] :or {show-all-args? false}}]
(if debug?
Expand Down

0 comments on commit e2a4403

Please sign in to comment.