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;
|
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