Prechádzať zdrojové kódy

'base提交添加键盘枚举'

zhangyu 5 rokov pred
rodič
commit
3a045e35df

+ 11 - 0
saga-web-base/src/enums/SKeyCode.ts

@@ -0,0 +1,11 @@
+/**
+ * 键盘按键枚举
+ *
+ * @author
+ */
+export enum SKeyCode {
+  Enter = 13,
+  Esc = 27,
+  Delete = 46,
+  Z = 90
+} // Enum SKeyCode

+ 2 - 1
saga-web-base/src/index.ts

@@ -1,6 +1,7 @@
 import { SMouseButton } from "./enums/SMouseButton";
 import { STouchState } from "./enums/STouchState";
-export { SMouseButton, STouchState };
+import { SKeyCode } from "./enums/SKeyCode";
+export { SMouseButton, STouchState, SKeyCode };
 
 import { SUndoCommand } from "./undo/SUndoCommand";
 import { SUndoStack } from "./undo/SUndoStack";