Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: improving work with keyboard and tab key, changing opening file key from enter to alt+enter, fixing #1837

Ilian Sapundshievc88199e62588
diff --git a/app/components/dialogs/DialogCloseButton.tsx b/app/components/dialogs/DialogCloseButton.tsx
index d06cf396d..739ce64d3 100644
--- a/app/components/dialogs/DialogCloseButton.tsx
+++ b/app/components/dialogs/DialogCloseButton.tsx
@@ -32,6 +32,7 @@ function DialogCloseButton(props: Props) {
<IconButton
title={i18n.t('closeButtonDialog')}
aria-label="close"
+ tabIndex={-1}
style={{
position: 'absolute',
right: 5,
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index c6d78d1f4..2f76cf7e5 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -769,5 +769,7 @@
"newWindow": "New window",
"entriesWillBeCreatedIn": "Files and folders will be created in:",
"noSuitableLocation": "Files or folders can't be created. No suitable location found!",
+ "openEntry": "Open entry",
+ "openSearch": "Open search",
"-": "-"
}
diff --git a/app/reducers/keybindings-default.ts b/app/reducers/keybindings-default.ts
index 9986a7f02..fd75363a3 100644
--- a/app/reducers/keybindings-default.ts
+++ b/app/reducers/keybindings-default.ts
@@ -86,7 +86,7 @@ export default function keyBindings(isMacLike) {
},
{
name: 'openEntry',
- command: 'enter'
+ command: 'alt+enter'
},
{
name: 'openParentDirectory',