Bläddra i källkod

元素拷贝问题修复

huqi 5 år sedan
förälder
incheckning
bb266eb7dd

+ 3 - 1
o2web/source/x_component_process_FormDesigner/Main.js

@@ -90,7 +90,9 @@ MWF.xApplication.process.FormDesigner.Main = new Class({
         if (this.shortcut) {
             if (this.form) {
                 //           if (this.form.isFocus){
-                if (!this.form.node.contains(document.activeElement)) return false;
+                if (!this.form.node.contains(document.activeElement)){
+                    return false;
+                }
                 if (this.form.currentSelectedModule) {
                     var module = this.form.currentSelectedModule;
                     if (module.moduleType != "form" && module.moduleName.indexOf("$") == -1) {

+ 1 - 0
o2web/source/x_component_process_FormDesigner/Module/$Module.js

@@ -375,6 +375,7 @@ MWF.xApplication.process.FormDesigner.Module.$Module = MWF.FC$Module = new Class
 		if (this.actionArea) this.actionArea.setStyle("display", "none");
 	},
 	selected: function(){
+		if (this.form && this.form.node)this.form.node.focus();
 		if (this.form.currentSelectedModule){
 			if (this.form.currentSelectedModule==this){
 				return true;

+ 3 - 0
o2web/source/x_component_process_ProcessDesigner/Activity.js

@@ -664,6 +664,9 @@ MWF.xApplication.process.ProcessDesigner.Activity = new Class({
         //	if (this.process.jsonParse) {
         //		window.setTimeout(function(){this.process.jsonParse.stopParseJson = true;}.bind(this), 1);
         //	}
+        try{
+            this.process.designer.paperInNode.focus();
+        }catch(e){};
         this.activitySelected();
         if (this.listItem) this.listItem.listSelected();
         //	if (this.process.property) this.process.property.hide();