|
@@ -648,7 +648,6 @@ var projectObj = {
|
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.ClipboardChanged, that.msClipboardChanged);
|
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.ButtonClicked, that.onButtonClick);
|
|
|
that.mainSpread.bind(GC.Spread.Sheets.Events.CellDoubleClick, that.onCellDoubleClick);
|
|
|
- that.mainSpread.commandManager().setShortcutKey(undefined, GC.Spread.Commands.Key.z, true, false, false, false);
|
|
|
//let loadOtherStartTime = +new Date();
|
|
|
that.loadMainSpreadContextMenu();
|
|
|
that.loadFocusLocation();
|
|
@@ -1222,6 +1221,7 @@ var projectObj = {
|
|
|
}
|
|
|
|
|
|
};
|
|
|
+
|
|
|
// 点击合计框中的复制
|
|
|
$("body").on("click", "#total-tips a", function() {
|
|
|
const totalElement = $(this).parent().siblings("p").find("#total");
|
|
@@ -1800,4 +1800,26 @@ function doAfterImport(resData){
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
-}
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+$(function () {
|
|
|
+
|
|
|
+ $("#billsSpread").mouseover(function(){
|
|
|
+ spreadAutoFocus(projectObj.mainSpread,subSpread);
|
|
|
+ });
|
|
|
+
|
|
|
+ $("#subSpread").mouseover(function(){
|
|
|
+ spreadAutoFocus(subSpread,projectObj.mainSpread);
|
|
|
+ });
|
|
|
+
|
|
|
+ function spreadAutoFocus(spread,relateSpread) {
|
|
|
+ if(relateSpread&&relateSpread.getActiveSheet().isEditing()){//关联的spread不在编辑状态的情况下,才自动获得焦点;
|
|
|
+ return;
|
|
|
+ }else {
|
|
|
+ spread?spread.focus():'';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+});
|