double-esc to dismiss gcode editor
This commit is contained in:
parent
fc6104df1c
commit
60b7a0c8b2
2 changed files with 5 additions and 2 deletions
|
|
@ -1920,7 +1920,10 @@ self.kiri.license = exports.LICENSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
function showDialog(which, force) {
|
function showDialog(which, force) {
|
||||||
UC.hidePop();
|
if (UC.isPopped()) {
|
||||||
|
UC.hidePop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
["catalog","devices","tools","settings"].forEach(function(dialog) {
|
["catalog","devices","tools","settings"].forEach(function(dialog) {
|
||||||
var style = UI[dialog].style;
|
var style = UI[dialog].style;
|
||||||
style.display = (dialog === which && (force || style.display !== 'flex') ? 'flex' : 'none');
|
style.display = (dialog === which && (force || style.display !== 'flex') ? 'flex' : 'none');
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
var exports = {
|
var exports = {
|
||||||
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
|
COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen <stewart@neuron.com> - All Rights Reserved",
|
||||||
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
|
LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.",
|
||||||
VERSION:"1.0.93"
|
VERSION:"1.0.94"
|
||||||
};
|
};
|
||||||
if (!module) var module = {};
|
if (!module) var module = {};
|
||||||
module.exports = exports;
|
module.exports = exports;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue