mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-01-24 06:48:58 +01:00
[bug] fix keyabord esc order
This commit is contained in:
parent
b38bf8f199
commit
750b92c61b
@ -10,22 +10,17 @@ var keyboard = (function() {
|
|||||||
edge.box.close();
|
edge.box.close();
|
||||||
} else if (state.get().menu) {
|
} else if (state.get().menu) {
|
||||||
menu.close();
|
menu.close();
|
||||||
shade.close();
|
|
||||||
} else if (state.get().dropdown) {
|
} else if (state.get().dropdown) {
|
||||||
dropdown.close();
|
dropdown.close();
|
||||||
} else if (state.get().autoSuggest) {
|
} else if (state.get().autoSuggest) {
|
||||||
autoSuggest.close();
|
autoSuggest.close();
|
||||||
} else if (state.get().link.add) {
|
} else if (state.get().link.add) {
|
||||||
link.add.item.close();
|
link.add.item.close();
|
||||||
shade.close();
|
|
||||||
} else if (state.get().group.add) {
|
} else if (state.get().group.add) {
|
||||||
link.add.group.close();
|
link.add.group.close();
|
||||||
shade.close();
|
|
||||||
} else if (state.get().link.edit) {
|
} else if (state.get().link.edit) {
|
||||||
link.add.item.close();
|
link.edit.close();
|
||||||
shade.close();
|
data.save();
|
||||||
control.render.update();
|
|
||||||
control.render.class();
|
|
||||||
} else if (state.get().modal) {
|
} else if (state.get().modal) {
|
||||||
modal.close();
|
modal.close();
|
||||||
shade.close();
|
shade.close();
|
||||||
@ -93,7 +88,6 @@ var keyboard = (function() {
|
|||||||
if (state.get().link.add) {
|
if (state.get().link.add) {
|
||||||
link.add.item.close();
|
link.add.item.close();
|
||||||
link.add.group.close();
|
link.add.group.close();
|
||||||
shade.close();
|
|
||||||
} else if (state.get().modal) {
|
} else if (state.get().modal) {
|
||||||
modal.close();
|
modal.close();
|
||||||
shade.close();
|
shade.close();
|
||||||
@ -107,10 +101,7 @@ var keyboard = (function() {
|
|||||||
window.addEventListener("keydown", function(event) {
|
window.addEventListener("keydown", function(event) {
|
||||||
// ctrl+alt+e
|
// ctrl+alt+e
|
||||||
if (event.ctrlKey && event.altKey && event.keyCode == 69) {
|
if (event.ctrlKey && event.altKey && event.keyCode == 69) {
|
||||||
link.edit();
|
link.edit.toggle();
|
||||||
link.tabindex();
|
|
||||||
control.render.update();
|
|
||||||
control.render.class();
|
|
||||||
data.save();
|
data.save();
|
||||||
};
|
};
|
||||||
}, false);
|
}, false);
|
||||||
|
@ -1386,6 +1386,7 @@ var link = (function() {
|
|||||||
mod.add.item.close();
|
mod.add.item.close();
|
||||||
stagedLink.reset();
|
stagedLink.reset();
|
||||||
modal.close();
|
modal.close();
|
||||||
|
shade.close();
|
||||||
pagelock.unlock();
|
pagelock.unlock();
|
||||||
},
|
},
|
||||||
selectGroup: function(groupIndex) {
|
selectGroup: function(groupIndex) {
|
||||||
@ -1444,6 +1445,7 @@ var link = (function() {
|
|||||||
mod.add.group.close();
|
mod.add.group.close();
|
||||||
stagedGroup.reset();
|
stagedGroup.reset();
|
||||||
modal.close();
|
modal.close();
|
||||||
|
shade.close();
|
||||||
pagelock.unlock();
|
pagelock.unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1654,8 +1656,28 @@ var link = (function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var edit = function() {
|
var edit = {
|
||||||
mod.edit.toggle();
|
toggle: function() {
|
||||||
|
mod.edit.toggle();
|
||||||
|
render.group.tabindex();
|
||||||
|
render.item.tabindex();
|
||||||
|
control.render.update();
|
||||||
|
control.render.class();
|
||||||
|
},
|
||||||
|
open: function() {
|
||||||
|
mod.edit.open();
|
||||||
|
render.group.tabindex();
|
||||||
|
render.item.tabindex();
|
||||||
|
control.render.update();
|
||||||
|
control.render.class();
|
||||||
|
},
|
||||||
|
close: function() {
|
||||||
|
mod.edit.close();
|
||||||
|
render.group.tabindex();
|
||||||
|
render.item.tabindex();
|
||||||
|
control.render.update();
|
||||||
|
control.render.class();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var tabindex = function() {
|
var tabindex = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user