From afca6a346321bfcd799747b6427aa5bb73fa0c3c Mon Sep 17 00:00:00 2001 From: Artem Tarasov Date: Thu, 14 Jan 2021 18:11:23 +0300 Subject: [PATCH] Web: Files: ConnectDialog: added tabIndex to input elements and enter key press handler --- .../components/dialogs/ConnectDialog/index.js | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/products/ASC.Files/Client/src/components/dialogs/ConnectDialog/index.js b/products/ASC.Files/Client/src/components/dialogs/ConnectDialog/index.js index 3eb02b6d14..ccc399584e 100644 --- a/products/ASC.Files/Client/src/components/dialogs/ConnectDialog/index.js +++ b/products/ASC.Files/Client/src/components/dialogs/ConnectDialog/index.js @@ -171,11 +171,15 @@ const PureConnectDialogContainer = (props) => { ); }; + const onKeyUpHandler = (e) => { + if (e.keyCode === 13) onSave(); + }; + const isAccount = !!link; const showUrlField = title === "WebDav" || title === "SharePoint"; return ( - + {t("ConnectingAccount")} @@ -194,18 +198,29 @@ const PureConnectDialogContainer = (props) => { {showUrlField && (
{t("ConnectionUrl")} - +
)}
{t("Login")} - +
{t("Password")} {
{t("ConnectFolderTitle")} {
-