This commit is contained in:
commit
7d13069da5
1 changed files with 2 additions and 2 deletions
|
@ -1270,7 +1270,7 @@ export async function startApp(): Promise<void> {
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('keydown', event => {
|
document.addEventListener('keydown', event => {
|
||||||
const { ctrlKey, metaKey, shiftKey } = event;
|
const { ctrlKey, metaKey, shiftKey, altKey } = event;
|
||||||
|
|
||||||
const commandKey = window.platform === 'darwin' && metaKey;
|
const commandKey = window.platform === 'darwin' && metaKey;
|
||||||
const controlKey = window.platform !== 'darwin' && ctrlKey;
|
const controlKey = window.platform !== 'darwin' && ctrlKey;
|
||||||
|
@ -1286,7 +1286,7 @@ export async function startApp(): Promise<void> {
|
||||||
|
|
||||||
// Show keyboard shortcuts - handled by Electron-managed keyboard shortcuts
|
// Show keyboard shortcuts - handled by Electron-managed keyboard shortcuts
|
||||||
// However, on linux Ctrl+/ selects all text, so we prevent that
|
// However, on linux Ctrl+/ selects all text, so we prevent that
|
||||||
if (commandOrCtrl && key === '/') {
|
if (commandOrCtrl && !altKey && key === '/') {
|
||||||
window.Events.showKeyboardShortcuts();
|
window.Events.showKeyboardShortcuts();
|
||||||
|
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue