Handle Ctrl+/ in the application instead of via Electron
To prevent 'select all' on Linux.
This commit is contained in:
parent
3c6e23cc5e
commit
6b60ca6bd7
3 changed files with 22 additions and 2 deletions
|
@ -655,6 +655,15 @@
|
|||
// NAVIGATION
|
||||
|
||||
// Show keyboard shortcuts - handled by Electron-managed keyboard shortcuts
|
||||
// However, on linux Ctrl+/ selects all text, so we prevent that
|
||||
if (ctrlOrCommand && key === '/') {
|
||||
window.showKeyboardShortcuts();
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Navigate by section
|
||||
if (ctrlOrCommand && !shiftKey && (key === 't' || key === 'T')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue