mirror of https://github.com/keeweb/keeweb.git
fix #1324: duplicated shortcut editor in settings
This commit is contained in:
parent
3e1f1e557e
commit
0fce37cc73
|
@ -53,7 +53,15 @@ class SettingsShortcutsView extends View {
|
||||||
shortcutClick(e) {
|
shortcutClick(e) {
|
||||||
const globalShortcutType = e.target.dataset.shortcut;
|
const globalShortcutType = e.target.dataset.shortcut;
|
||||||
|
|
||||||
const shortcutEditor = $('<div/>').addClass('shortcut__editor');
|
const existing = $(`.shortcut__editor[data-shortcut=${globalShortcutType}]`);
|
||||||
|
if (existing.length) {
|
||||||
|
existing.remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const shortcutEditor = $('<div/>')
|
||||||
|
.addClass('shortcut__editor')
|
||||||
|
.attr('data-shortcut', globalShortcutType);
|
||||||
$('<div/>')
|
$('<div/>')
|
||||||
.text(Locale.setShEdit)
|
.text(Locale.setShEdit)
|
||||||
.appendTo(shortcutEditor);
|
.appendTo(shortcutEditor);
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
Release notes
|
Release notes
|
||||||
-------------
|
-------------
|
||||||
|
##### v1.12.1 (2019-10-27)
|
||||||
|
`-` fix #1324: duplicated shortcut editor in settings
|
||||||
|
|
||||||
##### v1.12.0 (2019-10-26)
|
##### v1.12.0 (2019-10-26)
|
||||||
`-` #1022: fuzzy search
|
`-` #1022: fuzzy search
|
||||||
`+` #1108: setting for running in an iframe
|
`+` #1108: setting for running in an iframe
|
||||||
|
|
Loading…
Reference in New Issue