mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fix(konsole) error when multiple key "~" down
This commit is contained in:
parent
20065858fc
commit
914ac6999d
1 changed files with 12 additions and 12 deletions
|
|
@ -8,7 +8,7 @@ var CloudCmd, Util, join, DOM, CloudFunc, Console;
|
|||
function ConsoleProto() {
|
||||
var Name = 'Konsole',
|
||||
Element,
|
||||
|
||||
Loaded,
|
||||
Images = DOM.Images,
|
||||
Dialog = DOM.Dialog,
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ var CloudCmd, Util, join, DOM, CloudFunc, Console;
|
|||
CloudCmd.View,
|
||||
load,
|
||||
create,
|
||||
show,
|
||||
Konsole.show,
|
||||
]);
|
||||
|
||||
Element = DOM.load({
|
||||
|
|
@ -57,24 +57,24 @@ var CloudCmd, Util, join, DOM, CloudFunc, Console;
|
|||
});
|
||||
}
|
||||
|
||||
function show(callback) {
|
||||
CloudCmd.View.show(Element, {
|
||||
afterShow: function() {
|
||||
Console.focus();
|
||||
Util.exec(callback);
|
||||
}
|
||||
});
|
||||
}
|
||||
this.show = function(callback) {
|
||||
if (Loaded)
|
||||
CloudCmd.View.show(Element, {
|
||||
afterShow: function() {
|
||||
Console.focus();
|
||||
Util.exec(callback);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function load(callback) {
|
||||
DOM.load.js('/console/console.js', function(error) {
|
||||
if (error) {
|
||||
Dialog.alert(error.message);
|
||||
Konsole.show = init;
|
||||
} else {
|
||||
Loaded = true;
|
||||
Util.timeEnd(Name + ' load');
|
||||
Util.exec(callback);
|
||||
Konsole.show = show;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue