From a9cf4dad827a405df29cb4578700fcd0a1573e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 18 Aug 2021 10:56:33 +0200 Subject: [PATCH] :tada: Allow increment font size by 0.1 with alt --- .../src/app/main/ui/components/editable_select.cljs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/components/editable_select.cljs b/frontend/src/app/main/ui/components/editable_select.cljs index fcfe3cef1..d1a2e666f 100644 --- a/frontend/src/app/main/ui/components/editable_select.cljs +++ b/frontend/src/app/main/ui/components/editable_select.cljs @@ -86,11 +86,19 @@ value (-> (or (d/parse-double value) value) (math/precision 2)) - increment (if (kbd/shift? event) + increment (cond + (kbd/shift? event) (if up? 10 -10) + + (kbd/alt? event) + (if up? 0.1 -0.1) + + :else (if up? 1 -1)) - new-value (+ value increment) + new-value (-> (+ value increment) + (math/precision 2)) + new-value (cond (and (num? min-val) (< new-value min-val)) min-val (and (num? max-val) (> new-value max-val)) max-val