Skip to content

Commit 90a7b73

Browse files
committed
fix: remove shift key
1 parent 932cc01 commit 90a7b73

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

public/locales/en/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"Only nethlink": "Only Nethlink",
334334
"ShortcutToCall": "Shortcut to Call",
335335
"ShortcutHelp": "Enter a keyboard shortcut to start a call after selecting some text.",
336-
"ShortcutHelpDesc": "Unsupported keys: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\".",
336+
"ShortcutHelpDesc": "Unsupported keys: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\", \"Shift\".",
337337
"Clear and remove shortcut": "Clear and remove shortcut"
338338
},
339339
"TopBar": {
@@ -363,7 +363,7 @@
363363
"Shortcut": "Shortcut",
364364
"Keyboard shortcut to call": "Keyboard shortcut to call",
365365
"Shortcut title description": "Choose a keyboard shortcut to dial any selected number. Warning: avoid using system-reserved shortcuts.",
366-
"Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc"
366+
"Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift"
367367
},
368368
"OperatorDrawer": {
369369
"Book": "Book",

public/locales/it/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"Only nethlink": "Solo Nethlink",
334334
"ShortcutToCall": "Scorciatoia per chiamare",
335335
"ShortcutHelp": "Inserisci una scorciatoia da tastiera per far partire una chiamata dopo aver selezionato un testo.",
336-
"ShortcutHelpDesc": "Caratteri non consentiti: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\".",
336+
"ShortcutHelpDesc": "Caratteri non consentiti: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\", \"Shift\".",
337337
"Clear and remove shortcut": "Ripristina e rimuovi scorciatoia"
338338
},
339339
"TopBar": {
@@ -363,7 +363,7 @@
363363
"Shortcut": "Scorciatoia",
364364
"Keyboard shortcut to call": "Scorciatoia per chiamare",
365365
"Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo. Attenzione: non usare scorciatoie già presenti nel sistema.",
366-
"Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc"
366+
"Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift"
367367
},
368368
"OperatorDrawer": {
369369
"Book": "Prenota",

src/renderer/public/locales/en/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"Only nethlink": "Only Nethlink",
334334
"ShortcutToCall": "Shortcut to Call",
335335
"ShortcutHelp": "Enter a keyboard shortcut to start a call after selecting some text.",
336-
"ShortcutHelpDesc": "Unsupported keys: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\".",
336+
"ShortcutHelpDesc": "Unsupported keys: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\", \"Shift\".",
337337
"Clear and remove shortcut": "Clear and remove shortcut"
338338
},
339339
"TopBar": {
@@ -363,7 +363,7 @@
363363
"Shortcut": "Shortcut",
364364
"Keyboard shortcut to call": "Keyboard shortcut to call",
365365
"Shortcut title description": "Choose a keyboard shortcut to dial any selected number. Warning: avoid using system-reserved shortcuts.",
366-
"Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc"
366+
"Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift"
367367
},
368368
"OperatorDrawer": {
369369
"Book": "Book",

src/renderer/public/locales/it/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"Only nethlink": "Solo Nethlink",
334334
"ShortcutToCall": "Scorciatoia per chiamare",
335335
"ShortcutHelp": "Inserisci una scorciatoia da tastiera per far partire una chiamata dopo aver selezionato un testo.",
336-
"ShortcutHelpDesc": "Caratteri non consentiti: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\".",
336+
"ShortcutHelpDesc": "Caratteri non consentiti: \"Tab\", \"CapsLock\", \"NumLock\", \"Insert\", \"Escape\", \"Shift\".",
337337
"Clear and remove shortcut": "Ripristina e rimuovi scorciatoia"
338338
},
339339
"TopBar": {
@@ -363,7 +363,7 @@
363363
"Shortcut": "Scorciatoia",
364364
"Keyboard shortcut to call": "Scorciatoia per chiamare",
365365
"Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo. Attenzione: non usare scorciatoie già presenti nel sistema.",
366-
"Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc"
366+
"Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift"
367367
},
368368
"OperatorDrawer": {
369369
"Book": "Prenota",

src/renderer/src/components/Modules/NethVoice/BaseModule/ProfileDialog/SettingsSettings/SettingsShortcutDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ export function SettingsShortcutDialog() {
2727
'Dead',
2828
'Unidentified',
2929
'Escape',
30+
'Shift'
3031
])
3132

3233
const isModifierKey = (key: string) =>
33-
['Control', 'Alt', 'Meta', 'Shift'].includes(key)
34+
['Control', 'Alt', 'Meta'].includes(key)
3435

3536
const normalizeKey = (key: string): string => {
3637
switch (key) {
@@ -102,15 +103,14 @@ export function SettingsShortcutDialog() {
102103
if (e.ctrlKey) newKeys.add('Ctrl')
103104
if (e.altKey) newKeys.add('Alt')
104105
if (e.metaKey) newKeys.add('Cmd')
105-
if (e.shiftKey) newKeys.add('Shift')
106106

107107
if (!isModifierKey(rawKey)) {
108108
newKeys.add(normalizeKey(rawKey))
109109
}
110110

111111
setKeysPressed(newKeys)
112112

113-
const orderedModifiers = ['Ctrl', 'Alt', 'Cmd', 'Shift']
113+
const orderedModifiers = ['Ctrl', 'Alt', 'Cmd']
114114
const modifiers = orderedModifiers.filter((k) => newKeys.has(k))
115115
const others = [...newKeys].filter(
116116
(k) => !orderedModifiers.includes(k as any),

0 commit comments

Comments
 (0)