mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	key binding registration changed from keypress to keydown because the former doesn't work in chrome
This commit is contained in:
		| @@ -9,14 +9,14 @@ $(function() { | |||||||
| jQuery.hotkeys.options.filterInputAcceptingElements = true; | jQuery.hotkeys.options.filterInputAcceptingElements = true; | ||||||
| jQuery.hotkeys.options.filterContentEditable = true; | jQuery.hotkeys.options.filterContentEditable = true; | ||||||
|  |  | ||||||
| $(document).bind('keypress', 'alt+ctrl+h', function() { | $(document).bind('keydown', 'alt+ctrl+h', function() { | ||||||
|     const toggle = $(".hide-toggle"); |     const toggle = $(".hide-toggle"); | ||||||
|  |  | ||||||
|     // use visibility instead of display so that content isn't moved around and stays set in place |     // use visibility instead of display so that content isn't moved around and stays set in place | ||||||
|     toggle.css('visibility', toggle.css('visibility') === 'hidden' ? 'visible' : 'hidden'); |     toggle.css('visibility', toggle.css('visibility') === 'hidden' ? 'visible' : 'hidden'); | ||||||
| }); | }); | ||||||
|  |  | ||||||
| $(document).bind('keypress', 'alt+q', function() { | $(document).bind('keydown', 'alt+q', function() { | ||||||
|     $("#recentNotesDialog").dialog({ |     $("#recentNotesDialog").dialog({ | ||||||
|         modal: true |         modal: true | ||||||
|     }); |     }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user