From 494b484cd949fc3cbee9beaf1492931baec52c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szymborski?= Date: Tue, 3 Oct 2023 21:24:59 +0200 Subject: [PATCH] fix(#312): tabbing order through tables (variables etc) was inconsistent or impossible resolves #312 --- .../components/RequestPane/Assertions/AssertionRow/index.js | 3 ++- .../src/components/RequestPane/FormUrlEncodedParams/index.js | 3 ++- .../src/components/RequestPane/MultipartFormParams/index.js | 3 ++- .../src/components/RequestPane/QueryParams/index.js | 3 ++- .../src/components/RequestPane/RequestHeaders/index.js | 3 ++- .../src/components/RequestPane/Vars/VarsTable/index.js | 3 ++- packages/bruno-app/src/components/SingleLineEditor/index.js | 5 ++++- 7 files changed, 16 insertions(+), 7 deletions(-) diff --git a/packages/bruno-app/src/components/RequestPane/Assertions/AssertionRow/index.js b/packages/bruno-app/src/components/RequestPane/Assertions/AssertionRow/index.js index d4d6eeff8..61293b616 100644 --- a/packages/bruno-app/src/components/RequestPane/Assertions/AssertionRow/index.js +++ b/packages/bruno-app/src/components/RequestPane/Assertions/AssertionRow/index.js @@ -197,10 +197,11 @@ const AssertionRow = ({ handleAssertionChange(e, assertion, 'enabled')} /> - diff --git a/packages/bruno-app/src/components/RequestPane/FormUrlEncodedParams/index.js b/packages/bruno-app/src/components/RequestPane/FormUrlEncodedParams/index.js index 4f28cc579..3cf5842e8 100644 --- a/packages/bruno-app/src/components/RequestPane/FormUrlEncodedParams/index.js +++ b/packages/bruno-app/src/components/RequestPane/FormUrlEncodedParams/index.js @@ -116,10 +116,11 @@ const FormUrlEncodedParams = ({ item, collection }) => { handleParamChange(e, param, 'enabled')} /> - diff --git a/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js b/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js index 9cbfd67fd..f8bd7ebbd 100644 --- a/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js +++ b/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js @@ -116,10 +116,11 @@ const MultipartFormParams = ({ item, collection }) => { handleParamChange(e, param, 'enabled')} /> - diff --git a/packages/bruno-app/src/components/RequestPane/QueryParams/index.js b/packages/bruno-app/src/components/RequestPane/QueryParams/index.js index 0cb92f8e1..54e3ee0b3 100644 --- a/packages/bruno-app/src/components/RequestPane/QueryParams/index.js +++ b/packages/bruno-app/src/components/RequestPane/QueryParams/index.js @@ -115,10 +115,11 @@ const QueryParams = ({ item, collection }) => { handleParamChange(e, param, 'enabled')} /> - diff --git a/packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js b/packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js index a36004c29..db8b20f5f 100644 --- a/packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js +++ b/packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js @@ -123,10 +123,11 @@ const RequestHeaders = ({ item, collection }) => { handleHeaderValueChange(e, header, 'enabled')} /> - diff --git a/packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js b/packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js index 7333acc62..6ee760978 100644 --- a/packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js +++ b/packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js @@ -128,10 +128,11 @@ const VarsTable = ({ item, collection, vars, varType }) => { handleVarChange(e, _var, 'enabled')} /> - diff --git a/packages/bruno-app/src/components/SingleLineEditor/index.js b/packages/bruno-app/src/components/SingleLineEditor/index.js index 4f1575bca..bee59b2d9 100644 --- a/packages/bruno-app/src/components/SingleLineEditor/index.js +++ b/packages/bruno-app/src/components/SingleLineEditor/index.js @@ -66,6 +66,7 @@ class SingleLineEditor extends Component { variables: getAllVariables(this.props.collection) }, scrollbarStyle: null, + tabindex: 0, extraKeys: { Enter: () => { if (this.props.onRun) { @@ -104,7 +105,9 @@ class SingleLineEditor extends Component { }, 'Cmd-F': () => {}, 'Ctrl-F': () => {}, - Tab: () => {} + // Tabbing disabled to make tabindex work + Tab: false, + 'Shift-Tab': false } }); if (this.props.autocomplete) {