mirror of https://gitee.com/cf-fz/WebCAD.git
parent
cc9c95e38b
commit
78474ae6b3
@ -0,0 +1,23 @@
|
||||
import { Intent } from "../Common/Toaster";
|
||||
import { CommandServer } from "../DatabaseServices/CommandServer";
|
||||
import { Command } from "../Editor/CommandMachine";
|
||||
import { AppConfirm } from "../UI/Components/Common/Confirm";
|
||||
import { AppToaster } from "../UI/Components/Toaster";
|
||||
|
||||
export class Command_ResetCustomCommand implements Command
|
||||
{
|
||||
async exec()
|
||||
{
|
||||
let cmd = CommandServer.GetInstance() as CommandServer;
|
||||
let status = await AppConfirm.show({ message: "重置所有的快捷键?" });
|
||||
if (status)
|
||||
{
|
||||
await cmd.Reset();
|
||||
AppToaster.show({
|
||||
message: "成功重置快捷键,请重启WebCAD!",
|
||||
timeout: 5000,
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue