diff --git a/src/editor/dataset/enum/KeyMap.ts b/src/editor/dataset/enum/KeyMap.ts index 3ea9eef..67598f9 100644 --- a/src/editor/dataset/enum/KeyMap.ts +++ b/src/editor/dataset/enum/KeyMap.ts @@ -69,4 +69,14 @@ export enum KeyMap { X_UPPERCASE = 'X', Y_UPPERCASE = 'Y', Z_UPPERCASE = 'Z', + ZERO = '0', + ONE = '1', + TWO = '2', + THREE = '3', + FOUR = '4', + FIVE = '5', + SIX = '6', + SEVEN = '7', + EIGHT = '8', + NINE = '9' } \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 900d31e..380a73f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1006,6 +1006,14 @@ window.onload = function () { callback: (command: Command) => { command.executePageScaleAdd() } + }, + { + key: KeyMap.ZERO, + ctrl: true, + isGlobal: true, + callback: (command: Command) => { + command.executePageScaleRecovery() + } } ])