mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	Merge pull request #4004 from dymani/default-shortcuts
Fix shortcuts not resetting to default
This commit is contained in:
		
						commit
						8bc84cfaf6
					
				| @ -116,11 +116,11 @@ export default class KeyboardShortcutsOptions extends OptionsWidget { | |||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             $table.find('input.form-control').each(function() { |             $table.find('input.form-control').each((_index, el) => { | ||||||
|                 const defaultShortcuts = this.$widget.find(this).attr('data-default-keyboard-shortcuts'); |                 const defaultShortcuts = this.$widget.find(el).attr('data-default-keyboard-shortcuts'); | ||||||
| 
 | 
 | ||||||
|                 if (this.$widget.find(this).val() !== defaultShortcuts) { |                 if (this.$widget.find(el).val() !== defaultShortcuts) { | ||||||
|                     this.$widget.find(this) |                     this.$widget.find(el) | ||||||
|                         .val(defaultShortcuts) |                         .val(defaultShortcuts) | ||||||
|                         .trigger('change'); |                         .trigger('change'); | ||||||
|                 } |                 } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam