!205 右键菜单加入取消选中功能 ,像esc

Merge pull request !205 from 肖诗雅/rightmenu_esc
pull/205/MERGE
肖诗雅 6 years ago committed by ChenX
parent 96ef01c107
commit b1ade95b87

@ -63,6 +63,7 @@ export async function InitRightMenu(type?: RightMenuType, kwlist?: KeyWord[], ne
if (type === RightMenuType.Selected)
{
RightMenu.push(...[
{ key: "ESC", msg: `取消选中` },
{ key: "DEL", msg: `删除` },
{ key: "M", msg: `移动` },
{ key: "O", msg: `旋转` },

@ -54,6 +54,9 @@ export class MouseControls
if (lastCmd)
commandMachine.ExecCommand(lastCmd);
break;
case "ESC":
this.m_Ed.m_SelectCtrl.Cancel();
break;
case "C"://复制
if (res.Parent === "最近的输入")

Loading…
Cancel
Save