mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	Merge pull request #3357 from agentydragon/stuff
Add Ctrl+PgUp/Dn for tab switching, pointer to Electron docs
This commit is contained in:
		
						commit
						dacc2444c4
					
				@ -7,7 +7,10 @@ const TPL = `
 | 
			
		||||
<div class="options-section">
 | 
			
		||||
    <h4>Keyboard shortcuts</h4>
 | 
			
		||||
    
 | 
			
		||||
    <p>Multiple shortcuts for the same action can be separated by comma.</p>
 | 
			
		||||
    <p>
 | 
			
		||||
      Multiple shortcuts for the same action can be separated by comma.
 | 
			
		||||
      See <a href="https://www.electronjs.org/docs/latest/api/accelerator">Electron documentation</a> for available modifiers and key codes.
 | 
			
		||||
    </p>
 | 
			
		||||
    
 | 
			
		||||
    <div class="form-group">
 | 
			
		||||
        <input type="text" class="form-control" id="keyboard-shortcut-filter" placeholder="Type text to filter shortcuts...">
 | 
			
		||||
 | 
			
		||||
@ -215,13 +215,13 @@ const DEFAULT_KEYBOARD_ACTIONS = [
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        actionName: "activateNextTab",
 | 
			
		||||
        defaultShortcuts: isElectron ? ["CommandOrControl+Tab"] : [],
 | 
			
		||||
        defaultShortcuts: isElectron ? ["CommandOrControl+Tab", "CommandOrControl+PageDown"] : [],
 | 
			
		||||
        description: "Activates tab on the right",
 | 
			
		||||
        scope: "window"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        actionName: "activatePreviousTab",
 | 
			
		||||
        defaultShortcuts: isElectron ? ["CommandOrControl+Shift+Tab"] : [],
 | 
			
		||||
        defaultShortcuts: isElectron ? ["CommandOrControl+Shift+Tab", "CommandOrControl+PageUp"] : [],
 | 
			
		||||
        description: "Activates tab on the left",
 | 
			
		||||
        scope: "window"
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user