add settings load shortcut
This commit is contained in:
parent
a7b3c6d0d0
commit
27ca0e47ae
2 changed files with 11 additions and 2 deletions
|
|
@ -477,7 +477,11 @@
|
||||||
$('sexport').click();
|
$('sexport').click();
|
||||||
}
|
}
|
||||||
|
|
||||||
function settingsSave() {
|
function settingsSave(ev) {
|
||||||
|
if (ev) {
|
||||||
|
ev.stopPropagation();
|
||||||
|
ev.preventDefault();
|
||||||
|
}
|
||||||
API.dialog.hide();
|
API.dialog.hide();
|
||||||
let mode = API.mode.get(),
|
let mode = API.mode.get(),
|
||||||
s = settings(),
|
s = settings(),
|
||||||
|
|
@ -500,6 +504,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function settingsLoad() {
|
function settingsLoad() {
|
||||||
|
UC.hidePoppers();
|
||||||
API.conf.show();
|
API.conf.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1589,10 +1594,14 @@
|
||||||
API.space.reload();
|
API.space.reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// when profile hover/pop, hide other poppers
|
||||||
$('set-top').onmouseover = () => {
|
$('set-top').onmouseover = () => {
|
||||||
UC.hidePoppers();
|
UC.hidePoppers();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// shortcut to load settings
|
||||||
|
UI.settingsGroup.onclick = settingsLoad;
|
||||||
|
|
||||||
SPACE.addEventHandlers(self, [
|
SPACE.addEventHandlers(self, [
|
||||||
'keyup', keyUpHandler,
|
'keyup', keyUpHandler,
|
||||||
'keydown', keyDownHandler,
|
'keydown', keyDownHandler,
|
||||||
|
|
|
||||||
|
|
@ -542,7 +542,7 @@
|
||||||
|
|
||||||
b.onclick = function() {
|
b.onclick = function() {
|
||||||
hidePoppers();
|
hidePoppers();
|
||||||
if (action) action();
|
if (action) action(...arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (opt.class) {
|
if (opt.class) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue