double-esc to dismiss gcode editor

This commit is contained in:
Stewart Allen 2018-02-02 09:02:07 -05:00
commit 60b7a0c8b2
2 changed files with 5 additions and 2 deletions

View file

@ -1920,7 +1920,10 @@ self.kiri.license = exports.LICENSE;
}
function showDialog(which, force) {
UC.hidePop();
if (UC.isPopped()) {
UC.hidePop();
return;
}
["catalog","devices","tools","settings"].forEach(function(dialog) {
var style = UI[dialog].style;
style.display = (dialog === which && (force || style.display !== 'flex') ? 'flex' : 'none');