mirror of https://gitee.com/cf-fz/WebCAD.git
!1519 功能:新增命令快捷键
parent
3fba1f242d
commit
24d25afa09
@ -0,0 +1,22 @@
|
||||
export enum HotkeyList
|
||||
{
|
||||
C1 = "Control+1",
|
||||
C2 = "Control+2",
|
||||
CA = "Control+A",
|
||||
CB = "Control+B",
|
||||
CC = "Control+C",
|
||||
CY = "Control+Y",
|
||||
CV = "Control+V",
|
||||
CM = "Control+M",
|
||||
CS = "Control+S",
|
||||
CZ = "Control+Z",
|
||||
CP = "Control+P",
|
||||
CAE = "Control+Alt+E",
|
||||
CAP = "Control+Alt+P",
|
||||
CSC = "Control+Shift+C",
|
||||
AD = "Alt+D",
|
||||
AS = "Alt+S",
|
||||
AF = "Alt+F",
|
||||
D = "Delete",
|
||||
F1 = "F1"
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
import { Command } from "../../../../Editor/CommandMachine";
|
||||
import { DownPanelStore } from "../../../Store/DownPanelStore";
|
||||
import { RightPanelStore } from "../../../Store/RightPanelStore/RightPanelStore";
|
||||
import { RightTabId } from "../../RightPanel/RightPanel";
|
||||
|
||||
export class Command_PropertiesBar implements Command
|
||||
{
|
||||
async exec()
|
||||
{
|
||||
DownPanelStore.GetInstance().TogglePropertiesPanel();
|
||||
}
|
||||
}
|
||||
|
||||
export class Command_ModuleBar implements Command
|
||||
{
|
||||
async exec()
|
||||
{
|
||||
RightPanelStore.GetInstance().m_IsShow = !RightPanelStore.GetInstance().m_IsShow;
|
||||
}
|
||||
}
|
||||
|
||||
export class Command_ChangeLayout implements Command
|
||||
{
|
||||
async exec()
|
||||
{
|
||||
let store = DownPanelStore.GetInstance();
|
||||
store.isLayout = !store.isLayout;
|
||||
}
|
||||
}
|
||||
|
||||
export class Command_RightPanel implements Command
|
||||
{
|
||||
async exec()
|
||||
{
|
||||
let rightStore = RightPanelStore.GetInstance();
|
||||
if (rightStore.m_TabId === RightTabId.TemplateParam && rightStore.m_IsShow)
|
||||
rightStore.m_IsShow = false;
|
||||
else
|
||||
{
|
||||
rightStore.m_TabId = RightTabId.TemplateParam;
|
||||
rightStore.m_IsShow = true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue