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