diff --git a/html/index.html b/html/index.html
index 06c7bad9..fe7f286b 100644
--- a/html/index.html
+++ b/html/index.html
@@ -34,6 +34,7 @@
var script, Height,
files = [
+ 'lib/client/key.js',
'lib/client/listeners.js',
'lib/client.js',
'lib/client/dom.js',
diff --git a/lib/client.js b/lib/client.js
index 6a086863..34187e84 100644
--- a/lib/client.js
+++ b/lib/client.js
@@ -164,14 +164,16 @@ var Util, DOM, CloudFunc, CloudCmd;
};
function initModules(pCallBack) {
- loadModule({
- /* привязываем клавиши к функциям */
- path : 'key.js',
- func : function() {
- Key = new CloudCmd.Key();
- CloudCmd.Key = Key;
- Key.bind();
- }
+ Util.ifExec(CloudCmd.Key, function() {
+ Key = new CloudCmd.Key();
+ CloudCmd.Key = Key;
+ Key.bind();
+ }, function(callback) {
+ loadModule({
+ /* привязываем клавиши к функциям */
+ path : 'key.js',
+ func : callback
+ });
});
CloudCmd.getModules(function(pModules) {
@@ -255,7 +257,7 @@ var Util, DOM, CloudFunc, CloudCmd;
DOM.setCurrentFile(lCurrent);
}
- CloudCmd.Key();
+ Util.exec(CloudCmd.Key);
}
function getSystemFile(pGlobal, pURL) {