|
|
|
@ -8,14 +8,15 @@ import { ParseBoardRectHoleType } from "../../../Add-on/DrawDrilling/HoleUtils";
|
|
|
|
|
import { EBoardKeyList } from "../../../Common/BoardKeyList";
|
|
|
|
|
import { CheckObjectType } from "../../../Common/CheckoutVaildValue";
|
|
|
|
|
import { BigFaceSelectOption, ComposingFaceSelectOption, LineTypeSelectOption } from "../../../Common/CommonSelectOption";
|
|
|
|
|
import { FixedNotZero } from "../../../Common/Utils";
|
|
|
|
|
import { KeyBoard } from "../../../Common/KeyEnum";
|
|
|
|
|
import { copyTextToClipboard, FixedNotZero } from "../../../Common/Utils";
|
|
|
|
|
import { safeEval } from "../../../Common/eval";
|
|
|
|
|
import { Board } from "../../../DatabaseServices/Entity/Board";
|
|
|
|
|
import { LinesType } from "../../../DatabaseServices/Entity/BoardInterface";
|
|
|
|
|
import { ObjectId } from "../../../DatabaseServices/ObjectId";
|
|
|
|
|
import { ProcessingGroupRecord } from "../../../DatabaseServices/ProcessingGroup/ProcessingGroupRecord";
|
|
|
|
|
import { userConfig } from "../../../Editor/UserConfig";
|
|
|
|
|
import { TotalTabbarTitlesInfos, bbsEditorStore } from "../../Store/BBSEditorStore";
|
|
|
|
|
import { bbsEditorStore, TotalTabbarTitlesInfos } from "../../Store/BBSEditorStore";
|
|
|
|
|
import { BoardProcessOption } from "../../Store/OptionInterface/BoardProcessOption";
|
|
|
|
|
import { TopPanelStore } from "../../Store/TopPanelStore";
|
|
|
|
|
import { ToasterInput } from "../Toaster";
|
|
|
|
@ -137,6 +138,7 @@ export class BoardInfoList extends React.Component<IBoardInfoListProps, {}>
|
|
|
|
|
style={{
|
|
|
|
|
...this.props.style, width: "fit-content", background: `${trBgColor}`
|
|
|
|
|
}}
|
|
|
|
|
onKeyDown={(e) => this.HandleOnKeyDown(e)}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
className="bbs-list-td bbs-td bbsNumber"
|
|
|
|
@ -363,6 +365,16 @@ export class BoardInfoList extends React.Component<IBoardInfoListProps, {}>
|
|
|
|
|
UpdateSeletctedBr(index, findSameTypeBrDataKey);
|
|
|
|
|
this.isSelected = this.props.selectedBrOnList.includes(this.props.realBr);
|
|
|
|
|
};
|
|
|
|
|
HandleOnKeyDown = (e) =>
|
|
|
|
|
{
|
|
|
|
|
if (e.keyCode === KeyBoard.KeyC && e.ctrlKey)
|
|
|
|
|
{
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
const copiedText = document.getSelection().toString();
|
|
|
|
|
copyTextToClipboard(copiedText);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
GetBgColor = () =>
|
|
|
|
|
{
|
|
|
|
|
let isLightTheme = document.body.classList.contains("light-golden");
|
|
|
|
|