fix: change alt to control for shortcuts (#5054)

This commit is contained in:
Helmut K. C. Tessarek 2023-02-26 00:37:50 -05:00 committed by GitHub
parent 8a374a3310
commit 0d355806ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 11 deletions

View File

@ -9,7 +9,7 @@ export class ActionManager extends EventTarget {
this.actions = Object.seal({ this.actions = Object.seal({
'deselect-all': { 'deselect-all': {
enabled: false, enabled: false,
shortcut: 'Control+A', shortcut: 'Control+D',
text: 'Deselect all', text: 'Deselect all',
}, },
'move-bottom': { enabled: false, text: 'Move to the back of the queue' }, 'move-bottom': { enabled: false, text: 'Move to the back of the queue' },
@ -18,13 +18,13 @@ export class ActionManager extends EventTarget {
'move-up': { enabled: false, text: 'Move up in the queue' }, 'move-up': { enabled: false, text: 'Move up in the queue' },
'open-torrent': { 'open-torrent': {
enabled: true, enabled: true,
shortcut: 'Alt+O', shortcut: 'Control+O',
text: 'Open torrent…', text: 'Open torrent…',
}, },
'pause-all-torrents': { enabled: false, text: 'Pause all' }, 'pause-all-torrents': { enabled: false, text: 'Pause all' },
'pause-selected-torrents': { 'pause-selected-torrents': {
enabled: false, enabled: false,
shortcut: 'Alt+U', shortcut: 'Control+U',
text: 'Pause', text: 'Pause',
}, },
'reannounce-selected-torrents': { 'reannounce-selected-torrents': {
@ -34,15 +34,19 @@ export class ActionManager extends EventTarget {
'remove-selected-torrents': { enabled: false, text: 'Remove from list…' }, 'remove-selected-torrents': { enabled: false, text: 'Remove from list…' },
'resume-selected-torrents': { 'resume-selected-torrents': {
enabled: false, enabled: false,
shortcut: 'Alt+R', shortcut: 'Control+R',
text: 'Resume', text: 'Resume',
}, },
'resume-selected-torrents-now': { enabled: false, text: 'Resume now' }, 'resume-selected-torrents-now': { enabled: false, text: 'Resume now' },
'select-all': { enabled: false, shortcut: 'Alt+A', text: 'Select all' }, 'select-all': {
enabled: false,
shortcut: 'Control+A',
text: 'Select all',
},
'show-about-dialog': { enabled: true, text: 'About' }, 'show-about-dialog': { enabled: true, text: 'About' },
'show-inspector': { 'show-inspector': {
enabled: false, enabled: false,
shortcut: 'Alt+I', shortcut: 'Control+I',
text: 'Torrent Inspector', text: 'Torrent Inspector',
}, },
'show-labels-dialog': { 'show-labels-dialog': {
@ -51,24 +55,24 @@ export class ActionManager extends EventTarget {
}, },
'show-move-dialog': { 'show-move-dialog': {
enabled: false, enabled: false,
shortcut: 'Alt+L', shortcut: 'Control+L',
text: 'Set location…', text: 'Set location…',
}, },
'show-overflow-menu': { enabled: true, text: 'More options…' }, 'show-overflow-menu': { enabled: true, text: 'More options…' },
'show-preferences-dialog': { 'show-preferences-dialog': {
enabled: true, enabled: true,
shortcut: 'Alt+P', shortcut: 'Control+P',
text: 'Edit preferences', text: 'Edit preferences',
}, },
'show-rename-dialog': { 'show-rename-dialog': {
enabled: false, enabled: false,
shortcut: 'Alt+N', shortcut: 'Control+N',
text: 'Rename…', text: 'Rename…',
}, },
'show-shortcuts-dialog': { enabled: true, text: 'Keyboard shortcuts' }, 'show-shortcuts-dialog': { enabled: true, text: 'Keyboard shortcuts' },
'show-statistics-dialog': { 'show-statistics-dialog': {
enabled: true, enabled: true,
shortcut: 'Alt+S', shortcut: 'Control+S',
text: 'Statistics', text: 'Statistics',
}, },
'start-all-torrents': { enabled: false, text: 'Start all' }, 'start-all-torrents': { enabled: false, text: 'Start all' },
@ -79,7 +83,7 @@ export class ActionManager extends EventTarget {
}, },
'verify-selected-torrents': { 'verify-selected-torrents': {
enabled: false, enabled: false,
shortcut: 'Alt+V', shortcut: 'Control+V',
text: 'Verify local data', text: 'Verify local data',
}, },
}); });