From 643e6bd08dfcfe45b7eb2cbd0c6074339a9cadb4 Mon Sep 17 00:00:00 2001 From: Lipis Date: Thu, 20 Aug 2020 22:55:44 +0300 Subject: [PATCH] feat: Add hint for double click to insert text (#2056) --- src/components/HintViewer.tsx | 4 ++++ src/locales/en.json | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/HintViewer.tsx b/src/components/HintViewer.tsx index 7bcb1dde4..6e9be975f 100644 --- a/src/components/HintViewer.tsx +++ b/src/components/HintViewer.tsx @@ -27,6 +27,10 @@ const getHints = ({ appState, elements }: Hint) => { return t("hints.freeDraw"); } + if (elementType === "text") { + return t("hints.text"); + } + const selectedElements = getSelectedElements(elements, appState); if ( isResizing && diff --git a/src/locales/en.json b/src/locales/en.json index bc5e6761c..02483e795 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -134,6 +134,7 @@ "hints": { "linearElement": "Click to start multiple points, drag for single line", "freeDraw": "Click and drag, release when you're finished", + "text": "Tip: you can also add text by double-clicking anywhere with the selection tool", "linearElementMulti": "Click on last point or press Escape or Enter to finish", "resize": "You can constrain proportions by holding SHIFT while resizing,\nhold ALT to resize from the center", "rotate": "You can constrain angles by holding SHIFT while rotating",