mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Fix shortcuts not resetting to default
This commit is contained in:
parent
d3bf325f19
commit
282d135f0f
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user