diff --git a/frontend-html/public/locale/localization_cs-CZ.json b/frontend-html/public/locale/localization_cs-CZ.json index 95e8a504fc..fe8ee1144f 100644 --- a/frontend-html/public/locale/localization_cs-CZ.json +++ b/frontend-html/public/locale/localization_cs-CZ.json @@ -146,5 +146,6 @@ "order_columns_button": "Seřadit", "order_columns_title": "Pořadí sloupců", "add_new_record": "Přidat nový záznam", - "cancel_workflow_confirmation": "Opravdu chcete zrušit workflow?" + "cancel_workflow_confirmation": "Opravdu chcete zrušit workflow?", + "hold_ctrl_tool_tip": "Držte klávesu Ctrl a klikněte pro otevření odkazu" } \ No newline at end of file diff --git a/frontend-html/public/locale/localization_de-CH.json b/frontend-html/public/locale/localization_de-CH.json index 6cc7acfa54..b66853b0cb 100644 --- a/frontend-html/public/locale/localization_de-CH.json +++ b/frontend-html/public/locale/localization_de-CH.json @@ -141,5 +141,6 @@ "column_width": "Breite", "order_columns_button": "Sortieren", "order_columns_title": "Spalten sortieren", - "add_new_record": "Neuer Datensatz" + "add_new_record": "Neuer Datensatz", + "hold_ctrl_tool_tip": "Ctrl-Taste gedrückt halten und klicken, um den Link zu öffnen" } \ No newline at end of file diff --git a/frontend-html/public/locale/localization_de-DE.json b/frontend-html/public/locale/localization_de-DE.json index d811db8efd..e612533e86 100644 --- a/frontend-html/public/locale/localization_de-DE.json +++ b/frontend-html/public/locale/localization_de-DE.json @@ -141,5 +141,6 @@ "column_width": "Breite", "order_columns_button": "Sortieren", "order_columns_title": "Spalten sortieren", - "add_new_record": "Neuer Datensatz" + "add_new_record": "Neuer Datensatz", + "hold_ctrl_tool_tip": "Ctrl-Taste gedrückt halten und klicken, um den Link zu öffnen" } \ No newline at end of file diff --git a/frontend-html/public/locale/localization_en-US.json b/frontend-html/public/locale/localization_en-US.json index 959175c417..6df977f83b 100644 --- a/frontend-html/public/locale/localization_en-US.json +++ b/frontend-html/public/locale/localization_en-US.json @@ -142,5 +142,6 @@ "order_columns_button": "Order", "order_columns_title": "Order Columns", "add_new_record": "Add New Record", - "cancel_workflow_confirmation": "Are you sure you want to cancel the workflow?" + "cancel_workflow_confirmation": "Are you sure you want to cancel the workflow?", + "hold_ctrl_tool_tip": "Hold Ctrl and click to open link" } \ No newline at end of file diff --git a/frontend-html/public/locale/localization_fr-CH.json b/frontend-html/public/locale/localization_fr-CH.json index 7c26045f5d..59c55bac0b 100644 --- a/frontend-html/public/locale/localization_fr-CH.json +++ b/frontend-html/public/locale/localization_fr-CH.json @@ -130,5 +130,6 @@ "order_columns_button": "organiser", "order_columns_title": "organiser les colonnes", "add_new_record": "Ajouter nouveau dossier", - "cancel_workflow_confirmation": "Êtes-vous certain de vouloir annuler le flux de travail?" + "cancel_workflow_confirmation": "Êtes-vous certain de vouloir annuler le flux de travail?", + "hold_ctrl_tool_tip": "Maintenez Ctrl enfoncé et cliquez pour ouvrir le lien" } \ No newline at end of file diff --git a/frontend-html/src/gui/Components/Dropdown/Dropdown.module.scss b/frontend-html/src/gui/Components/Dropdown/Dropdown.module.scss index 6ea14dd71b..2e9d8b6525 100644 --- a/frontend-html/src/gui/Components/Dropdown/Dropdown.module.scss +++ b/frontend-html/src/gui/Components/Dropdown/Dropdown.module.scss @@ -163,8 +163,10 @@ along with ORIGAM. If not, see . } .input { + color: var(--foreground1) !important; + cursor: text; + &:global(.isLink) { - color: var(--foreground1) !important; cursor: pointer !important; } } diff --git a/frontend-html/src/modules/Editors/DropdownEditor/DropdownEditorInput.tsx b/frontend-html/src/modules/Editors/DropdownEditor/DropdownEditorInput.tsx index 22bd5be3d7..aff3fe367e 100644 --- a/frontend-html/src/modules/Editors/DropdownEditor/DropdownEditorInput.tsx +++ b/frontend-html/src/modules/Editors/DropdownEditor/DropdownEditorInput.tsx @@ -18,10 +18,11 @@ along with ORIGAM. If not, see . */ import { Observer } from "mobx-react"; -import React, { useContext, useEffect, useMemo } from "react"; +import React, { useContext, useEffect, useMemo, useState } from "react"; import { CtxDropdownEditor } from "./DropdownEditor"; import cx from 'classnames'; import S from "gui/Components/Dropdown/Dropdown.module.scss"; +import { T } from "utils/translation"; export function DropdownEditorInput(props: { backgroundColor?: string; @@ -31,6 +32,7 @@ export function DropdownEditorInput(props: { const beh = useContext(CtxDropdownEditor).behavior; const data = useContext(CtxDropdownEditor).editorData; const setup = useContext(CtxDropdownEditor).setup; + const [ctrlKeyPressed, setCtrlKeyPressed] = useState(false); const refInput = useMemo(() => { return (elm: any) => { beh.refInputElement(elm); @@ -60,12 +62,22 @@ export function DropdownEditorInput(props: { } } + document.addEventListener('keydown', function(event) { + if (event.ctrlKey) + setCtrlKeyPressed(true) + }); + + document.addEventListener('keyup', function(event) { + if (!event.ctrlKey) + setCtrlKeyPressed(false) + }); return ( {() => (