@opensumi/ide-core-browser 2.12.1-next-079c1930
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/lib/application/application-state-service.d.ts +16 -0
- package/lib/application/application-state-service.d.ts.map +1 -0
- package/lib/application/application-state-service.js +47 -0
- package/lib/application/application-state-service.js.map +1 -0
- package/lib/application/application.service.d.ts +11 -0
- package/lib/application/application.service.d.ts.map +1 -0
- package/lib/application/application.service.js +41 -0
- package/lib/application/application.service.js.map +1 -0
- package/lib/application/index.d.ts +3 -0
- package/lib/application/index.d.ts.map +1 -0
- package/lib/application/index.js +6 -0
- package/lib/application/index.js.map +1 -0
- package/lib/authentication/authentication.contribution.d.ts +8 -0
- package/lib/authentication/authentication.contribution.d.ts.map +1 -0
- package/lib/authentication/authentication.contribution.js +32 -0
- package/lib/authentication/authentication.contribution.js.map +1 -0
- package/lib/authentication/authentication.service.d.ts +54 -0
- package/lib/authentication/authentication.service.d.ts.map +1 -0
- package/lib/authentication/authentication.service.js +413 -0
- package/lib/authentication/authentication.service.js.map +1 -0
- package/lib/bootstrap/app.d.ts +142 -0
- package/lib/bootstrap/app.d.ts.map +1 -0
- package/lib/bootstrap/app.js +516 -0
- package/lib/bootstrap/app.js.map +1 -0
- package/lib/bootstrap/app.view.d.ts +11 -0
- package/lib/bootstrap/app.view.d.ts.map +1 -0
- package/lib/bootstrap/app.view.js +72 -0
- package/lib/bootstrap/app.view.js.map +1 -0
- package/lib/bootstrap/connection.d.ts +7 -0
- package/lib/bootstrap/connection.d.ts.map +1 -0
- package/lib/bootstrap/connection.js +78 -0
- package/lib/bootstrap/connection.js.map +1 -0
- package/lib/bootstrap/index.d.ts +4 -0
- package/lib/bootstrap/index.d.ts.map +1 -0
- package/lib/bootstrap/index.js +7 -0
- package/lib/bootstrap/index.js.map +1 -0
- package/lib/bootstrap/inner-providers.d.ts +3 -0
- package/lib/bootstrap/inner-providers.d.ts.map +1 -0
- package/lib/bootstrap/inner-providers.js +231 -0
- package/lib/bootstrap/inner-providers.js.map +1 -0
- package/lib/browser-module.d.ts +20 -0
- package/lib/browser-module.d.ts.map +1 -0
- package/lib/browser-module.js +15 -0
- package/lib/browser-module.js.map +1 -0
- package/lib/common/common.command.d.ts +156 -0
- package/lib/common/common.command.d.ts.map +1 -0
- package/lib/common/common.command.js +611 -0
- package/lib/common/common.command.js.map +1 -0
- package/lib/common/common.contribution.d.ts +22 -0
- package/lib/common/common.contribution.d.ts.map +1 -0
- package/lib/common/common.contribution.js +241 -0
- package/lib/common/common.contribution.js.map +1 -0
- package/lib/common/common.define.d.ts +47 -0
- package/lib/common/common.define.d.ts.map +1 -0
- package/lib/common/common.define.js +5 -0
- package/lib/common/common.define.js.map +1 -0
- package/lib/common/common.module.d.ts +13 -0
- package/lib/common/common.module.d.ts.map +1 -0
- package/lib/common/common.module.js +41 -0
- package/lib/common/common.module.js.map +1 -0
- package/lib/common/common.storage.d.ts +9 -0
- package/lib/common/common.storage.d.ts.map +1 -0
- package/lib/common/common.storage.js +25 -0
- package/lib/common/common.storage.js.map +1 -0
- package/lib/common/index.d.ts +5 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +8 -0
- package/lib/common/index.js.map +1 -0
- package/lib/components/actions/index.d.ts +77 -0
- package/lib/components/actions/index.d.ts.map +1 -0
- package/lib/components/actions/index.js +201 -0
- package/lib/components/actions/index.js.map +1 -0
- package/lib/components/actions/placements.d.ts +58 -0
- package/lib/components/actions/placements.d.ts.map +1 -0
- package/lib/components/actions/placements.js +48 -0
- package/lib/components/actions/placements.js.map +1 -0
- package/lib/components/actions/styles.module.less +128 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/badge/index.d.ts.map +1 -0
- package/lib/components/badge/index.js +6 -0
- package/lib/components/badge/index.js.map +1 -0
- package/lib/components/click-outside/index.d.ts +6 -0
- package/lib/components/click-outside/index.d.ts.map +1 -0
- package/lib/components/click-outside/index.js +27 -0
- package/lib/components/click-outside/index.js.map +1 -0
- package/lib/components/index.d.ts +25 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +30 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/layout/box-panel.d.ts +18 -0
- package/lib/components/layout/box-panel.d.ts.map +1 -0
- package/lib/components/layout/box-panel.js +20 -0
- package/lib/components/layout/box-panel.js.map +1 -0
- package/lib/components/layout/default-layout.d.ts +15 -0
- package/lib/components/layout/default-layout.d.ts.map +1 -0
- package/lib/components/layout/default-layout.js +39 -0
- package/lib/components/layout/default-layout.js.map +1 -0
- package/lib/components/layout/index.d.ts +5 -0
- package/lib/components/layout/index.d.ts.map +1 -0
- package/lib/components/layout/index.js +8 -0
- package/lib/components/layout/index.js.map +1 -0
- package/lib/components/layout/layout.d.ts +13 -0
- package/lib/components/layout/layout.d.ts.map +1 -0
- package/lib/components/layout/layout.js +72 -0
- package/lib/components/layout/layout.js.map +1 -0
- package/lib/components/layout/split-panel.d.ts +38 -0
- package/lib/components/layout/split-panel.d.ts.map +1 -0
- package/lib/components/layout/split-panel.js +182 -0
- package/lib/components/layout/split-panel.js.map +1 -0
- package/lib/components/layout/split-panel.service.d.ts +16 -0
- package/lib/components/layout/split-panel.service.d.ts.map +1 -0
- package/lib/components/layout/split-panel.service.js +69 -0
- package/lib/components/layout/split-panel.service.js.map +1 -0
- package/lib/components/layout/styles.module.less +119 -0
- package/lib/components/loading/index.d.ts +2 -0
- package/lib/components/loading/index.d.ts.map +1 -0
- package/lib/components/loading/index.js +5 -0
- package/lib/components/loading/index.js.map +1 -0
- package/lib/components/loading/loading.less +14 -0
- package/lib/components/loading/loading.view.d.ts +4 -0
- package/lib/components/loading/loading.view.d.ts.map +1 -0
- package/lib/components/loading/loading.view.js +12 -0
- package/lib/components/loading/loading.view.js.map +1 -0
- package/lib/components/loading/media/loading-dark.svg +52 -0
- package/lib/components/loading/media/loading-hc.svg +52 -0
- package/lib/components/loading/media/loading.svg +52 -0
- package/lib/components/popover/styles.module.less +81 -0
- package/lib/components/portal/index.d.ts +6 -0
- package/lib/components/portal/index.d.ts.map +1 -0
- package/lib/components/portal/index.js +11 -0
- package/lib/components/portal/index.js.map +1 -0
- package/lib/components/progressbar/index.d.ts +5 -0
- package/lib/components/progressbar/index.d.ts.map +1 -0
- package/lib/components/progressbar/index.js +15 -0
- package/lib/components/progressbar/index.js.map +1 -0
- package/lib/components/progressbar/styles.module.less +31 -0
- package/lib/components/recycle-tree/index.d.ts +2 -0
- package/lib/components/recycle-tree/index.d.ts.map +1 -0
- package/lib/components/recycle-tree/index.js +5 -0
- package/lib/components/recycle-tree/index.js.map +1 -0
- package/lib/components/recycle-tree/recycle-tree.view.d.ts +82 -0
- package/lib/components/recycle-tree/recycle-tree.view.d.ts.map +1 -0
- package/lib/components/recycle-tree/recycle-tree.view.js +192 -0
- package/lib/components/recycle-tree/recycle-tree.view.js.map +1 -0
- package/lib/components/resize/resize.d.ts +39 -0
- package/lib/components/resize/resize.d.ts.map +1 -0
- package/lib/components/resize/resize.js +609 -0
- package/lib/components/resize/resize.js.map +1 -0
- package/lib/components/resize/resize.module.less +78 -0
- package/lib/components/scrollbar/index.d.ts +2 -0
- package/lib/components/scrollbar/index.d.ts.map +1 -0
- package/lib/components/scrollbar/index.js +5 -0
- package/lib/components/scrollbar/index.js.map +1 -0
- package/lib/components/scrollbar/scrollbar.less +36 -0
- package/lib/components/scrollbar/scrollbar.view.d.ts +7 -0
- package/lib/components/scrollbar/scrollbar.view.d.ts.map +1 -0
- package/lib/components/scrollbar/scrollbar.view.js +11 -0
- package/lib/components/scrollbar/scrollbar.view.js.map +1 -0
- package/lib/components/select/index.d.ts +4 -0
- package/lib/components/select/index.d.ts.map +1 -0
- package/lib/components/select/index.js +14 -0
- package/lib/components/select/index.js.map +1 -0
- package/lib/components/select/styles.less +8 -0
- package/lib/components/tree/index.d.ts +4 -0
- package/lib/components/tree/index.d.ts.map +1 -0
- package/lib/components/tree/index.js +7 -0
- package/lib/components/tree/index.js.map +1 -0
- package/lib/components/tree/tree-node.view.d.ts +26 -0
- package/lib/components/tree/tree-node.view.d.ts.map +1 -0
- package/lib/components/tree/tree-node.view.js +346 -0
- package/lib/components/tree/tree-node.view.js.map +1 -0
- package/lib/components/tree/tree.module.less +295 -0
- package/lib/components/tree/tree.view.d.ts +132 -0
- package/lib/components/tree/tree.view.d.ts.map +1 -0
- package/lib/components/tree/tree.view.js +246 -0
- package/lib/components/tree/tree.view.js.map +1 -0
- package/lib/context-key.d.ts +32 -0
- package/lib/context-key.d.ts.map +1 -0
- package/lib/context-key.js +9 -0
- package/lib/context-key.js.map +1 -0
- package/lib/contextkey/explorer.d.ts +16 -0
- package/lib/contextkey/explorer.d.ts.map +1 -0
- package/lib/contextkey/explorer.js +20 -0
- package/lib/contextkey/explorer.js.map +1 -0
- package/lib/contextkey/index.d.ts +6 -0
- package/lib/contextkey/index.d.ts.map +1 -0
- package/lib/contextkey/index.js +9 -0
- package/lib/contextkey/index.js.map +1 -0
- package/lib/contextkey/outline.d.ts +4 -0
- package/lib/contextkey/outline.d.ts.map +1 -0
- package/lib/contextkey/outline.js +7 -0
- package/lib/contextkey/outline.js.map +1 -0
- package/lib/contextkey/resource.d.ts +17 -0
- package/lib/contextkey/resource.d.ts.map +1 -0
- package/lib/contextkey/resource.js +45 -0
- package/lib/contextkey/resource.js.map +1 -0
- package/lib/contextkey/terminal.d.ts +7 -0
- package/lib/contextkey/terminal.d.ts.map +1 -0
- package/lib/contextkey/terminal.js +10 -0
- package/lib/contextkey/terminal.js.map +1 -0
- package/lib/contextkey/workspace.d.ts +7 -0
- package/lib/contextkey/workspace.d.ts.map +1 -0
- package/lib/contextkey/workspace.js +10 -0
- package/lib/contextkey/workspace.js.map +1 -0
- package/lib/core-preferences.d.ts +57 -0
- package/lib/core-preferences.d.ts.map +1 -0
- package/lib/core-preferences.js +328 -0
- package/lib/core-preferences.js.map +1 -0
- package/lib/dom/index.d.ts +68 -0
- package/lib/dom/index.d.ts.map +1 -0
- package/lib/dom/index.js +126 -0
- package/lib/dom/index.js.map +1 -0
- package/lib/encoding-registry.d.ts +31 -0
- package/lib/encoding-registry.d.ts.map +1 -0
- package/lib/encoding-registry.js +85 -0
- package/lib/encoding-registry.js.map +1 -0
- package/lib/fs/index.d.ts +12 -0
- package/lib/fs/index.d.ts.map +1 -0
- package/lib/fs/index.js +9 -0
- package/lib/fs/index.js.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.d.ts +6 -0
- package/lib/hash-calculate/hash-calculate.contribution.d.ts.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.js +27 -0
- package/lib/hash-calculate/hash-calculate.contribution.js.map +1 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +34 -0
- package/lib/index.js.map +1 -0
- package/lib/keybinding/index.d.ts +2 -0
- package/lib/keybinding/index.d.ts.map +1 -0
- package/lib/keybinding/index.js +5 -0
- package/lib/keybinding/index.js.map +1 -0
- package/lib/keybinding/keybinding.d.ts +340 -0
- package/lib/keybinding/keybinding.d.ts.map +1 -0
- package/lib/keybinding/keybinding.js +720 -0
- package/lib/keybinding/keybinding.js.map +1 -0
- package/lib/keyboard/index.d.ts +4 -0
- package/lib/keyboard/index.d.ts.map +1 -0
- package/lib/keyboard/index.js +7 -0
- package/lib/keyboard/index.js.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts +92 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.js +344 -0
- package/lib/keyboard/keyboard-layout-provider.js.map +1 -0
- package/lib/keyboard/keyboard-layout-service.d.ts +65 -0
- package/lib/keyboard/keyboard-layout-service.d.ts.map +1 -0
- package/lib/keyboard/keyboard-layout-service.js +415 -0
- package/lib/keyboard/keyboard-layout-service.js.map +1 -0
- package/lib/keyboard/keys.d.ts +294 -0
- package/lib/keyboard/keys.d.ts.map +1 -0
- package/lib/keyboard/keys.js +699 -0
- package/lib/keyboard/keys.js.map +1 -0
- package/lib/keyboard/layouts/_.contribution.d.ts +9 -0
- package/lib/keyboard/layouts/_.contribution.d.ts.map +1 -0
- package/lib/keyboard/layouts/_.contribution.js +21 -0
- package/lib/keyboard/layouts/_.contribution.js.map +1 -0
- package/lib/keyboard/layouts/cz.win.d.ts +2 -0
- package/lib/keyboard/layouts/cz.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/cz.win.js +169 -0
- package/lib/keyboard/layouts/cz.win.js.map +1 -0
- package/lib/keyboard/layouts/de-swiss.win.d.ts +2 -0
- package/lib/keyboard/layouts/de-swiss.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/de-swiss.win.js +169 -0
- package/lib/keyboard/layouts/de-swiss.win.js.map +1 -0
- package/lib/keyboard/layouts/de.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/de.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.darwin.js +132 -0
- package/lib/keyboard/layouts/de.darwin.js.map +1 -0
- package/lib/keyboard/layouts/de.linux.d.ts +2 -0
- package/lib/keyboard/layouts/de.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.linux.js +187 -0
- package/lib/keyboard/layouts/de.linux.js.map +1 -0
- package/lib/keyboard/layouts/de.win.d.ts +2 -0
- package/lib/keyboard/layouts/de.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.win.js +169 -0
- package/lib/keyboard/layouts/de.win.js.map +1 -0
- package/lib/keyboard/layouts/dk.win.d.ts +2 -0
- package/lib/keyboard/layouts/dk.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/dk.win.js +169 -0
- package/lib/keyboard/layouts/dk.win.js.map +1 -0
- package/lib/keyboard/layouts/dvorak.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/dvorak.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/dvorak.darwin.js +132 -0
- package/lib/keyboard/layouts/dvorak.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-belgian.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-belgian.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-belgian.win.js +169 -0
- package/lib/keyboard/layouts/en-belgian.win.js.map +1 -0
- package/lib/keyboard/layouts/en-ext.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-ext.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-ext.darwin.js +132 -0
- package/lib/keyboard/layouts/en-ext.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-in.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-in.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-in.win.js +169 -0
- package/lib/keyboard/layouts/en-in.win.js.map +1 -0
- package/lib/keyboard/layouts/en-intl.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-intl.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-intl.darwin.js +132 -0
- package/lib/keyboard/layouts/en-intl.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-intl.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-intl.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-intl.win.js +169 -0
- package/lib/keyboard/layouts/en-intl.win.js.map +1 -0
- package/lib/keyboard/layouts/en-uk.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-uk.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-uk.darwin.js +132 -0
- package/lib/keyboard/layouts/en-uk.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-uk.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-uk.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-uk.win.js +169 -0
- package/lib/keyboard/layouts/en-uk.win.js.map +1 -0
- package/lib/keyboard/layouts/en.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.darwin.js +140 -0
- package/lib/keyboard/layouts/en.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en.linux.d.ts +2 -0
- package/lib/keyboard/layouts/en.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.linux.js +189 -0
- package/lib/keyboard/layouts/en.linux.js.map +1 -0
- package/lib/keyboard/layouts/en.win.d.ts +2 -0
- package/lib/keyboard/layouts/en.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.win.js +174 -0
- package/lib/keyboard/layouts/en.win.js.map +1 -0
- package/lib/keyboard/layouts/es-latin.win.d.ts +2 -0
- package/lib/keyboard/layouts/es-latin.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/es-latin.win.js +169 -0
- package/lib/keyboard/layouts/es-latin.win.js.map +1 -0
- package/lib/keyboard/layouts/es.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/es.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.darwin.js +132 -0
- package/lib/keyboard/layouts/es.darwin.js.map +1 -0
- package/lib/keyboard/layouts/es.linux.d.ts +2 -0
- package/lib/keyboard/layouts/es.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.linux.js +187 -0
- package/lib/keyboard/layouts/es.linux.js.map +1 -0
- package/lib/keyboard/layouts/es.win.d.ts +2 -0
- package/lib/keyboard/layouts/es.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.win.js +169 -0
- package/lib/keyboard/layouts/es.win.js.map +1 -0
- package/lib/keyboard/layouts/fr.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/fr.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.darwin.js +132 -0
- package/lib/keyboard/layouts/fr.darwin.js.map +1 -0
- package/lib/keyboard/layouts/fr.linux.d.ts +2 -0
- package/lib/keyboard/layouts/fr.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.linux.js +187 -0
- package/lib/keyboard/layouts/fr.linux.js.map +1 -0
- package/lib/keyboard/layouts/fr.win.d.ts +2 -0
- package/lib/keyboard/layouts/fr.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.win.js +169 -0
- package/lib/keyboard/layouts/fr.win.js.map +1 -0
- package/lib/keyboard/layouts/hu.win.d.ts +2 -0
- package/lib/keyboard/layouts/hu.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/hu.win.js +169 -0
- package/lib/keyboard/layouts/hu.win.js.map +1 -0
- package/lib/keyboard/layouts/it.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/it.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/it.darwin.js +132 -0
- package/lib/keyboard/layouts/it.darwin.js.map +1 -0
- package/lib/keyboard/layouts/it.win.d.ts +2 -0
- package/lib/keyboard/layouts/it.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/it.win.js +169 -0
- package/lib/keyboard/layouts/it.win.js.map +1 -0
- package/lib/keyboard/layouts/jp-roman.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/jp-roman.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/jp-roman.darwin.js +132 -0
- package/lib/keyboard/layouts/jp-roman.darwin.js.map +1 -0
- package/lib/keyboard/layouts/jp.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/jp.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/jp.darwin.js +132 -0
- package/lib/keyboard/layouts/jp.darwin.js.map +1 -0
- package/lib/keyboard/layouts/ko.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/ko.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/ko.darwin.js +132 -0
- package/lib/keyboard/layouts/ko.darwin.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.d.ts +3 -0
- package/lib/keyboard/layouts/layout.contribution.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.js +27 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.js +11 -0
- package/lib/keyboard/layouts/layout.contribution.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.linux.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.linux.js +16 -0
- package/lib/keyboard/layouts/layout.contribution.linux.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.win.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.win.js +33 -0
- package/lib/keyboard/layouts/layout.contribution.win.js.map +1 -0
- package/lib/keyboard/layouts/no.win.d.ts +2 -0
- package/lib/keyboard/layouts/no.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/no.win.js +169 -0
- package/lib/keyboard/layouts/no.win.js.map +1 -0
- package/lib/keyboard/layouts/pl.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/pl.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/pl.darwin.js +132 -0
- package/lib/keyboard/layouts/pl.darwin.js.map +1 -0
- package/lib/keyboard/layouts/pl.win.d.ts +2 -0
- package/lib/keyboard/layouts/pl.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pl.win.js +169 -0
- package/lib/keyboard/layouts/pl.win.js.map +1 -0
- package/lib/keyboard/layouts/pt-br.win.d.ts +2 -0
- package/lib/keyboard/layouts/pt-br.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt-br.win.js +169 -0
- package/lib/keyboard/layouts/pt-br.win.js.map +1 -0
- package/lib/keyboard/layouts/pt.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/pt.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt.darwin.js +132 -0
- package/lib/keyboard/layouts/pt.darwin.js.map +1 -0
- package/lib/keyboard/layouts/pt.win.d.ts +2 -0
- package/lib/keyboard/layouts/pt.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt.win.js +169 -0
- package/lib/keyboard/layouts/pt.win.js.map +1 -0
- package/lib/keyboard/layouts/ru.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/ru.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.darwin.js +132 -0
- package/lib/keyboard/layouts/ru.darwin.js.map +1 -0
- package/lib/keyboard/layouts/ru.linux.d.ts +2 -0
- package/lib/keyboard/layouts/ru.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.linux.js +187 -0
- package/lib/keyboard/layouts/ru.linux.js.map +1 -0
- package/lib/keyboard/layouts/ru.win.d.ts +2 -0
- package/lib/keyboard/layouts/ru.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.win.js +169 -0
- package/lib/keyboard/layouts/ru.win.js.map +1 -0
- package/lib/keyboard/layouts/sv.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/sv.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/sv.darwin.js +132 -0
- package/lib/keyboard/layouts/sv.darwin.js.map +1 -0
- package/lib/keyboard/layouts/sv.win.d.ts +2 -0
- package/lib/keyboard/layouts/sv.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/sv.win.js +171 -0
- package/lib/keyboard/layouts/sv.win.js.map +1 -0
- package/lib/keyboard/layouts/thai.win.d.ts +2 -0
- package/lib/keyboard/layouts/thai.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/thai.win.js +169 -0
- package/lib/keyboard/layouts/thai.win.js.map +1 -0
- package/lib/keyboard/layouts/tr.win.d.ts +2 -0
- package/lib/keyboard/layouts/tr.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/tr.win.js +169 -0
- package/lib/keyboard/layouts/tr.win.js.map +1 -0
- package/lib/keyboard/layouts/zh-hans.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/zh-hans.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/zh-hans.darwin.js +132 -0
- package/lib/keyboard/layouts/zh-hans.darwin.js.map +1 -0
- package/lib/layout/accordion/tab-bar-toolbar.d.ts +25 -0
- package/lib/layout/accordion/tab-bar-toolbar.d.ts.map +1 -0
- package/lib/layout/accordion/tab-bar-toolbar.js +37 -0
- package/lib/layout/accordion/tab-bar-toolbar.js.map +1 -0
- package/lib/layout/accordion/view-context-key.registry.d.ts +9 -0
- package/lib/layout/accordion/view-context-key.registry.d.ts.map +1 -0
- package/lib/layout/accordion/view-context-key.registry.js +38 -0
- package/lib/layout/accordion/view-context-key.registry.js.map +1 -0
- package/lib/layout/index.d.ts +103 -0
- package/lib/layout/index.d.ts.map +1 -0
- package/lib/layout/index.js +143 -0
- package/lib/layout/index.js.map +1 -0
- package/lib/layout/layout-state.d.ts +24 -0
- package/lib/layout/layout-state.d.ts.map +1 -0
- package/lib/layout/layout-state.js +99 -0
- package/lib/layout/layout-state.js.map +1 -0
- package/lib/logger/browser-logger.d.ts +17 -0
- package/lib/logger/browser-logger.d.ts.map +1 -0
- package/lib/logger/browser-logger.js +50 -0
- package/lib/logger/browser-logger.js.map +1 -0
- package/lib/logger/index.d.ts +2 -0
- package/lib/logger/index.d.ts.map +1 -0
- package/lib/logger/index.js +5 -0
- package/lib/logger/index.js.map +1 -0
- package/lib/menu/next/base.d.ts +242 -0
- package/lib/menu/next/base.d.ts.map +1 -0
- package/lib/menu/next/base.js +267 -0
- package/lib/menu/next/base.js.map +1 -0
- package/lib/menu/next/ctxmenu-service.d.ts +42 -0
- package/lib/menu/next/ctxmenu-service.d.ts.map +1 -0
- package/lib/menu/next/ctxmenu-service.js +151 -0
- package/lib/menu/next/ctxmenu-service.js.map +1 -0
- package/lib/menu/next/index.d.ts +11 -0
- package/lib/menu/next/index.d.ts.map +1 -0
- package/lib/menu/next/index.js +14 -0
- package/lib/menu/next/index.js.map +1 -0
- package/lib/menu/next/menu-id.d.ts +59 -0
- package/lib/menu/next/menu-id.d.ts.map +1 -0
- package/lib/menu/next/menu-id.js +73 -0
- package/lib/menu/next/menu-id.js.map +1 -0
- package/lib/menu/next/menu-service.d.ts +9 -0
- package/lib/menu/next/menu-service.d.ts.map +1 -0
- package/lib/menu/next/menu-service.js +205 -0
- package/lib/menu/next/menu-service.js.map +1 -0
- package/lib/menu/next/menu-util.d.ts +18 -0
- package/lib/menu/next/menu-util.d.ts.map +1 -0
- package/lib/menu/next/menu-util.js +64 -0
- package/lib/menu/next/menu-util.js.map +1 -0
- package/lib/menu/next/menu.contrib.interface.d.ts +22 -0
- package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -0
- package/lib/menu/next/menu.contrib.interface.js +9 -0
- package/lib/menu/next/menu.contrib.interface.js.map +1 -0
- package/lib/menu/next/menu.interface.d.ts +100 -0
- package/lib/menu/next/menu.interface.d.ts.map +1 -0
- package/lib/menu/next/menu.interface.js +192 -0
- package/lib/menu/next/menu.interface.js.map +1 -0
- package/lib/menu/next/menubar-service.d.ts +53 -0
- package/lib/menu/next/menubar-service.d.ts.map +1 -0
- package/lib/menu/next/menubar-service.js +178 -0
- package/lib/menu/next/menubar-service.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/base.d.ts +19 -0
- package/lib/menu/next/renderer/ctxmenu/base.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/base.js +7 -0
- package/lib/menu/next/renderer/ctxmenu/base.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/browser.d.ts +19 -0
- package/lib/menu/next/renderer/ctxmenu/browser.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/browser.js +40 -0
- package/lib/menu/next/renderer/ctxmenu/browser.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/electron.d.ts +34 -0
- package/lib/menu/next/renderer/ctxmenu/electron.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/electron.js +198 -0
- package/lib/menu/next/renderer/ctxmenu/electron.js.map +1 -0
- package/lib/menu/next/toolbar-action.service.d.ts +50 -0
- package/lib/menu/next/toolbar-action.service.d.ts.map +1 -0
- package/lib/menu/next/toolbar-action.service.js +93 -0
- package/lib/menu/next/toolbar-action.service.js.map +1 -0
- package/lib/monaco/index.d.ts +99 -0
- package/lib/monaco/index.d.ts.map +1 -0
- package/lib/monaco/index.js +32 -0
- package/lib/monaco/index.js.map +1 -0
- package/lib/opener/command-opener.d.ts +12 -0
- package/lib/opener/command-opener.d.ts.map +1 -0
- package/lib/opener/command-opener.js +49 -0
- package/lib/opener/command-opener.js.map +1 -0
- package/lib/opener/default-opener.d.ts +8 -0
- package/lib/opener/default-opener.d.ts.map +1 -0
- package/lib/opener/default-opener.js +32 -0
- package/lib/opener/default-opener.js.map +1 -0
- package/lib/opener/http-opener.d.ts +9 -0
- package/lib/opener/http-opener.d.ts.map +1 -0
- package/lib/opener/http-opener.js +33 -0
- package/lib/opener/http-opener.js.map +1 -0
- package/lib/opener/index.d.ts +16 -0
- package/lib/opener/index.d.ts.map +1 -0
- package/lib/opener/index.js +6 -0
- package/lib/opener/index.js.map +1 -0
- package/lib/opener/opener.contribution.d.ts +14 -0
- package/lib/opener/opener.contribution.d.ts.map +1 -0
- package/lib/opener/opener.contribution.js +63 -0
- package/lib/opener/opener.contribution.js.map +1 -0
- package/lib/opener/opener.service.d.ts +14 -0
- package/lib/opener/opener.service.d.ts.map +1 -0
- package/lib/opener/opener.service.js +67 -0
- package/lib/opener/opener.service.js.map +1 -0
- package/lib/preferences/early-preferences.d.ts +24 -0
- package/lib/preferences/early-preferences.d.ts.map +1 -0
- package/lib/preferences/early-preferences.js +96 -0
- package/lib/preferences/early-preferences.js.map +1 -0
- package/lib/preferences/index.d.ts +9 -0
- package/lib/preferences/index.d.ts.map +1 -0
- package/lib/preferences/index.js +12 -0
- package/lib/preferences/index.js.map +1 -0
- package/lib/preferences/preference-configurations.d.ts +22 -0
- package/lib/preferences/preference-configurations.d.ts.map +1 -0
- package/lib/preferences/preference-configurations.js +68 -0
- package/lib/preferences/preference-configurations.js.map +1 -0
- package/lib/preferences/preference-contribution.d.ts +82 -0
- package/lib/preferences/preference-contribution.d.ts.map +1 -0
- package/lib/preferences/preference-contribution.js +325 -0
- package/lib/preferences/preference-contribution.js.map +1 -0
- package/lib/preferences/preference-provider.d.ts +117 -0
- package/lib/preferences/preference-provider.d.ts.map +1 -0
- package/lib/preferences/preference-provider.js +275 -0
- package/lib/preferences/preference-provider.js.map +1 -0
- package/lib/preferences/preference-proxy.d.ts +45 -0
- package/lib/preferences/preference-proxy.d.ts.map +1 -0
- package/lib/preferences/preference-proxy.js +195 -0
- package/lib/preferences/preference-proxy.js.map +1 -0
- package/lib/preferences/preference-scope.d.ts +3 -0
- package/lib/preferences/preference-scope.d.ts.map +1 -0
- package/lib/preferences/preference-scope.js +6 -0
- package/lib/preferences/preference-scope.js.map +1 -0
- package/lib/preferences/preference-service.d.ts +194 -0
- package/lib/preferences/preference-service.d.ts.map +1 -0
- package/lib/preferences/preference-service.js +425 -0
- package/lib/preferences/preference-service.js.map +1 -0
- package/lib/preferences/settings.d.ts +41 -0
- package/lib/preferences/settings.d.ts.map +1 -0
- package/lib/preferences/settings.js +5 -0
- package/lib/preferences/settings.js.map +1 -0
- package/lib/progress/index.d.ts +36 -0
- package/lib/progress/index.d.ts.map +1 -0
- package/lib/progress/index.js +10 -0
- package/lib/progress/index.js.map +1 -0
- package/lib/progress/progress-bar.d.ts +7 -0
- package/lib/progress/progress-bar.d.ts.map +1 -0
- package/lib/progress/progress-bar.js +14 -0
- package/lib/progress/progress-bar.js.map +1 -0
- package/lib/progress/progress-indicator.d.ts +12 -0
- package/lib/progress/progress-indicator.d.ts.map +1 -0
- package/lib/progress/progress-indicator.js +106 -0
- package/lib/progress/progress-indicator.js.map +1 -0
- package/lib/progress/progress.module.less +40 -0
- package/lib/progress/progress.service.d.ts +19 -0
- package/lib/progress/progress.service.d.ts.map +1 -0
- package/lib/progress/progress.service.js +343 -0
- package/lib/progress/progress.service.js.map +1 -0
- package/lib/quick-open/index.d.ts +467 -0
- package/lib/quick-open/index.d.ts.map +1 -0
- package/lib/quick-open/index.js +145 -0
- package/lib/quick-open/index.js.map +1 -0
- package/lib/quick-open/recent-files.d.ts +11 -0
- package/lib/quick-open/recent-files.d.ts.map +1 -0
- package/lib/quick-open/recent-files.js +73 -0
- package/lib/quick-open/recent-files.js.map +1 -0
- package/lib/raw-context-key.d.ts +57 -0
- package/lib/raw-context-key.d.ts.map +1 -0
- package/lib/raw-context-key.js +96 -0
- package/lib/raw-context-key.js.map +1 -0
- package/lib/react-hooks/event.d.ts +11 -0
- package/lib/react-hooks/event.d.ts.map +1 -0
- package/lib/react-hooks/event.js +64 -0
- package/lib/react-hooks/event.js.map +1 -0
- package/lib/react-hooks/hot-key.d.ts +5 -0
- package/lib/react-hooks/hot-key.d.ts.map +1 -0
- package/lib/react-hooks/hot-key.js +48 -0
- package/lib/react-hooks/hot-key.js.map +1 -0
- package/lib/react-hooks/index.d.ts +4 -0
- package/lib/react-hooks/index.d.ts.map +1 -0
- package/lib/react-hooks/index.js +7 -0
- package/lib/react-hooks/index.js.map +1 -0
- package/lib/react-hooks/injectable-hooks.d.ts +3 -0
- package/lib/react-hooks/injectable-hooks.d.ts.map +1 -0
- package/lib/react-hooks/injectable-hooks.js +33 -0
- package/lib/react-hooks/injectable-hooks.js.map +1 -0
- package/lib/react-hooks/portal-hooks.d.ts +2 -0
- package/lib/react-hooks/portal-hooks.d.ts.map +1 -0
- package/lib/react-hooks/portal-hooks.js +36 -0
- package/lib/react-hooks/portal-hooks.js.map +1 -0
- package/lib/react-providers/config-provider.d.ts +182 -0
- package/lib/react-providers/config-provider.d.ts.map +1 -0
- package/lib/react-providers/config-provider.js +24 -0
- package/lib/react-providers/config-provider.js.map +1 -0
- package/lib/react-providers/index.d.ts +3 -0
- package/lib/react-providers/index.d.ts.map +1 -0
- package/lib/react-providers/index.js +6 -0
- package/lib/react-providers/index.js.map +1 -0
- package/lib/react-providers/slot.d.ts +73 -0
- package/lib/react-providers/slot.d.ts.map +1 -0
- package/lib/react-providers/slot.js +184 -0
- package/lib/react-providers/slot.js.map +1 -0
- package/lib/services/clipboard.service.d.ts +17 -0
- package/lib/services/clipboard.service.d.ts.map +1 -0
- package/lib/services/clipboard.service.js +57 -0
- package/lib/services/clipboard.service.js.map +1 -0
- package/lib/services/credentials-service.d.ts +36 -0
- package/lib/services/credentials-service.d.ts.map +1 -0
- package/lib/services/credentials-service.js +62 -0
- package/lib/services/credentials-service.js.map +1 -0
- package/lib/services/cryptr-service.d.ts +11 -0
- package/lib/services/cryptr-service.d.ts.map +1 -0
- package/lib/services/cryptr-service.js +24 -0
- package/lib/services/cryptr-service.js.map +1 -0
- package/lib/services/external-uri.service.d.ts +28 -0
- package/lib/services/external-uri.service.d.ts.map +1 -0
- package/lib/services/external-uri.service.js +58 -0
- package/lib/services/external-uri.service.js.map +1 -0
- package/lib/services/index.d.ts +8 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +11 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/label-service.d.ts +74 -0
- package/lib/services/label-service.d.ts.map +1 -0
- package/lib/services/label-service.js +306 -0
- package/lib/services/label-service.js.map +1 -0
- package/lib/services/status-bar-service.d.ts +86 -0
- package/lib/services/status-bar-service.d.ts.map +1 -0
- package/lib/services/status-bar-service.js +25 -0
- package/lib/services/status-bar-service.js.map +1 -0
- package/lib/services/storage-service.d.ts +72 -0
- package/lib/services/storage-service.d.ts.map +1 -0
- package/lib/services/storage-service.js +128 -0
- package/lib/services/storage-service.js.map +1 -0
- package/lib/style/codicons/README.md +32 -0
- package/lib/style/codicons/codicon-animations.css +15 -0
- package/lib/style/entry.less +25 -0
- package/lib/style/icon/fileicons/file-default.svg +1 -0
- package/lib/style/icon/fileicons/folder-default.svg +1 -0
- package/lib/style/icon/fileicons.less +9 -0
- package/lib/style/icon/icon.d.ts +19 -0
- package/lib/style/icon/icon.d.ts.map +1 -0
- package/lib/style/icon/icon.js +64 -0
- package/lib/style/icon/icon.js.map +1 -0
- package/lib/style/icon/ide-iconfont.d.ts +5 -0
- package/lib/style/icon/ide-iconfont.d.ts.map +1 -0
- package/lib/style/icon/ide-iconfont.js +10 -0
- package/lib/style/icon/ide-iconfont.js.map +1 -0
- package/lib/style/icon/index.less +54 -0
- package/lib/style/icon/seti.woff +0 -0
- package/lib/style/icon/symbol-icons/boolean-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/boolean-light.svg +3 -0
- package/lib/style/icon/symbol-icons/class-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/class-light.svg +3 -0
- package/lib/style/icon/symbol-icons/constant-dark.svg +4 -0
- package/lib/style/icon/symbol-icons/constant-light.svg +4 -0
- package/lib/style/icon/symbol-icons/enumerator-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-item-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-item-light.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-light.svg +3 -0
- package/lib/style/icon/symbol-icons/event-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/event-light.svg +3 -0
- package/lib/style/icon/symbol-icons/field-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/field-light.svg +3 -0
- package/lib/style/icon/symbol-icons/file-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/file-light.svg +3 -0
- package/lib/style/icon/symbol-icons/indexer-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/indexer-light.svg +3 -0
- package/lib/style/icon/symbol-icons/interface-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/interface-light.svg +3 -0
- package/lib/style/icon/symbol-icons/keyword-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/keyword-light.svg +3 -0
- package/lib/style/icon/symbol-icons/method-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/method-light.svg +3 -0
- package/lib/style/icon/symbol-icons/namespace-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/namespace-light.svg +3 -0
- package/lib/style/icon/symbol-icons/numeric-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/numeric-light.svg +3 -0
- package/lib/style/icon/symbol-icons/operator-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/operator-light.svg +3 -0
- package/lib/style/icon/symbol-icons/property-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/property-light.svg +3 -0
- package/lib/style/icon/symbol-icons/snippet-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/snippet-light.svg +3 -0
- package/lib/style/icon/symbol-icons/string-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/string-light.svg +3 -0
- package/lib/style/icon/symbol-icons/structure-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/structure-light.svg +3 -0
- package/lib/style/icon/symbol-icons/symbol-icons.css +284 -0
- package/lib/style/icon/symbol-icons/template-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/template-light.svg +3 -0
- package/lib/style/icon/symbol-icons/variable-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/variable-light.svg +3 -0
- package/lib/style/icon.less +8 -0
- package/lib/style/index.less +14 -0
- package/lib/style/monaco-override.less +86 -0
- package/lib/style/normalize.less +89 -0
- package/lib/style/octicons/octicons-cdn.css +269 -0
- package/lib/style/octicons/octicons.css +263 -0
- package/lib/style/octicons/octicons.html +1882 -0
- package/lib/style/octicons/octicons.svg +582 -0
- package/lib/style/octicons/octicons.ttf +0 -0
- package/lib/style/override.less +80 -0
- package/lib/style/toolbar.less +193 -0
- package/lib/style/utilities.less +18 -0
- package/lib/style/variable.less +16 -0
- package/lib/toolbar/components/auto-complete.d.ts +1 -0
- package/lib/toolbar/components/auto-complete.d.ts.map +1 -0
- package/lib/toolbar/components/auto-complete.js +2 -0
- package/lib/toolbar/components/auto-complete.js.map +1 -0
- package/lib/toolbar/components/button.d.ts +11 -0
- package/lib/toolbar/components/button.d.ts.map +1 -0
- package/lib/toolbar/components/button.js +324 -0
- package/lib/toolbar/components/button.js.map +1 -0
- package/lib/toolbar/components/index.d.ts +3 -0
- package/lib/toolbar/components/index.d.ts.map +1 -0
- package/lib/toolbar/components/index.js +6 -0
- package/lib/toolbar/components/index.js.map +1 -0
- package/lib/toolbar/components/select.d.ts +5 -0
- package/lib/toolbar/components/select.d.ts.map +1 -0
- package/lib/toolbar/components/select.js +161 -0
- package/lib/toolbar/components/select.js.map +1 -0
- package/lib/toolbar/index.d.ts +4 -0
- package/lib/toolbar/index.d.ts.map +1 -0
- package/lib/toolbar/index.js +9 -0
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/toolbar.d.ts +17 -0
- package/lib/toolbar/toolbar.d.ts.map +1 -0
- package/lib/toolbar/toolbar.js +508 -0
- package/lib/toolbar/toolbar.js.map +1 -0
- package/lib/toolbar/toolbar.popover.registry.d.ts +11 -0
- package/lib/toolbar/toolbar.popover.registry.d.ts.map +1 -0
- package/lib/toolbar/toolbar.popover.registry.js +36 -0
- package/lib/toolbar/toolbar.popover.registry.js.map +1 -0
- package/lib/toolbar/toolbar.registry.d.ts +46 -0
- package/lib/toolbar/toolbar.registry.d.ts.map +1 -0
- package/lib/toolbar/toolbar.registry.js +283 -0
- package/lib/toolbar/toolbar.registry.js.map +1 -0
- package/lib/toolbar/types.d.ts +286 -0
- package/lib/toolbar/types.d.ts.map +1 -0
- package/lib/toolbar/types.js +18 -0
- package/lib/toolbar/types.js.map +1 -0
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.d.ts.map +1 -0
- package/lib/tree/index.js +7 -0
- package/lib/tree/index.js.map +1 -0
- package/lib/tree/tree-expansion.d.ts +16 -0
- package/lib/tree/tree-expansion.d.ts.map +1 -0
- package/lib/tree/tree-expansion.js +20 -0
- package/lib/tree/tree-expansion.js.map +1 -0
- package/lib/tree/tree-selection.d.ts +48 -0
- package/lib/tree/tree-selection.d.ts.map +1 -0
- package/lib/tree/tree-selection.js +64 -0
- package/lib/tree/tree-selection.js.map +1 -0
- package/lib/tree/tree.d.ts +195 -0
- package/lib/tree/tree.d.ts.map +1 -0
- package/lib/tree/tree.js +108 -0
- package/lib/tree/tree.js.map +1 -0
- package/lib/utils/create-overlay.d.ts +8 -0
- package/lib/utils/create-overlay.d.ts.map +1 -0
- package/lib/utils/create-overlay.js +50 -0
- package/lib/utils/create-overlay.js.map +1 -0
- package/lib/utils/electron.d.ts +23 -0
- package/lib/utils/electron.d.ts.map +1 -0
- package/lib/utils/electron.js +56 -0
- package/lib/utils/electron.js.map +1 -0
- package/lib/utils/env.d.ts +4 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/env.js +31 -0
- package/lib/utils/env.js.map +1 -0
- package/lib/utils/icon.d.ts +7 -0
- package/lib/utils/icon.d.ts.map +1 -0
- package/lib/utils/icon.js +18 -0
- package/lib/utils/icon.js.map +1 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +9 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/parse.d.ts +25 -0
- package/lib/utils/parse.d.ts.map +1 -0
- package/lib/utils/parse.js +72 -0
- package/lib/utils/parse.js.map +1 -0
- package/lib/utils/react-hooks.d.ts +12 -0
- package/lib/utils/react-hooks.d.ts.map +1 -0
- package/lib/utils/react-hooks.js +84 -0
- package/lib/utils/react-hooks.js.map +1 -0
- package/lib/variable/index.d.ts +2 -0
- package/lib/variable/index.d.ts.map +1 -0
- package/lib/variable/index.js +5 -0
- package/lib/variable/index.js.map +1 -0
- package/lib/variable/variable.d.ts +49 -0
- package/lib/variable/variable.d.ts.map +1 -0
- package/lib/variable/variable.js +56 -0
- package/lib/variable/variable.js.map +1 -0
- package/lib/window/index.d.ts +25 -0
- package/lib/window/index.d.ts.map +1 -0
- package/lib/window/index.js +5 -0
- package/lib/window/index.js.map +1 -0
- package/lib/window/window.service.d.ts +14 -0
- package/lib/window/window.service.d.ts.map +1 -0
- package/lib/window/window.service.js +103 -0
- package/lib/window/window.service.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
// Some code copued and modified from https://github.com/eclipse-theia/theia/tree/v1.14.0/packages/core/src/browser/keyboard/keys.ts
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.KeysOrKeyCodes = exports.Key = exports.SpecialCases = exports.KeyModifier = exports.KeyCode = exports.KeySequence = void 0;
|
|
20
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
21
|
+
const platform_1 = require("@opensumi/ide-core-common/lib/platform");
|
|
22
|
+
var KeySequence;
|
|
23
|
+
(function (KeySequence) {
|
|
24
|
+
function equals(a, b) {
|
|
25
|
+
if (a.length !== b.length) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
for (let i = 0; i < a.length; i++) {
|
|
29
|
+
if (!a[i].equals(b[i])) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
KeySequence.equals = equals;
|
|
36
|
+
let CompareResult;
|
|
37
|
+
(function (CompareResult) {
|
|
38
|
+
CompareResult[CompareResult["NONE"] = 0] = "NONE";
|
|
39
|
+
CompareResult[CompareResult["PARTIAL"] = 1] = "PARTIAL";
|
|
40
|
+
CompareResult[CompareResult["SHADOW"] = 2] = "SHADOW";
|
|
41
|
+
CompareResult[CompareResult["FULL"] = 3] = "FULL";
|
|
42
|
+
})(CompareResult = KeySequence.CompareResult || (KeySequence.CompareResult = {}));
|
|
43
|
+
/* Compares two KeySequences, returns:
|
|
44
|
+
* FULL if the KeySequences are the same.
|
|
45
|
+
* PARTIAL if the KeySequence a part of b.
|
|
46
|
+
* SHADOW if the KeySequence b part of a.
|
|
47
|
+
* NONE if the KeySequences are not the same at all.
|
|
48
|
+
*/
|
|
49
|
+
function compare(a, b) {
|
|
50
|
+
let first = a;
|
|
51
|
+
let second = b;
|
|
52
|
+
let shadow = false;
|
|
53
|
+
if (b.length < a.length) {
|
|
54
|
+
first = b;
|
|
55
|
+
second = a;
|
|
56
|
+
shadow = true;
|
|
57
|
+
}
|
|
58
|
+
for (let i = 0; i < first.length; i++) {
|
|
59
|
+
if (first[i].equals(second[i]) === false) {
|
|
60
|
+
return KeySequence.CompareResult.NONE;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (first.length < second.length) {
|
|
64
|
+
if (shadow === false) {
|
|
65
|
+
return KeySequence.CompareResult.PARTIAL;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return KeySequence.CompareResult.SHADOW;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return KeySequence.CompareResult.FULL;
|
|
72
|
+
}
|
|
73
|
+
KeySequence.compare = compare;
|
|
74
|
+
function parse(keybinding) {
|
|
75
|
+
const keyCodes = [];
|
|
76
|
+
const rawKeyCodes = keybinding.trim().split(/\s+/g);
|
|
77
|
+
for (const rawKeyCode of rawKeyCodes) {
|
|
78
|
+
const keyCode = KeyCode.parse(rawKeyCode);
|
|
79
|
+
if (keyCode !== undefined) {
|
|
80
|
+
keyCodes.push(keyCode);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return keyCodes;
|
|
84
|
+
}
|
|
85
|
+
KeySequence.parse = parse;
|
|
86
|
+
})(KeySequence = exports.KeySequence || (exports.KeySequence = {}));
|
|
87
|
+
function toNormalCase(str) {
|
|
88
|
+
return str.substr(0, 1).toUpperCase() + str.substr(1);
|
|
89
|
+
}
|
|
90
|
+
class KeyCode {
|
|
91
|
+
constructor(schema) {
|
|
92
|
+
const key = schema.key;
|
|
93
|
+
if (key) {
|
|
94
|
+
if (key.code && key.keyCode && key.easyString) {
|
|
95
|
+
this.key = key;
|
|
96
|
+
}
|
|
97
|
+
else if (key.code) {
|
|
98
|
+
this.key = Key.getKey(key.code);
|
|
99
|
+
}
|
|
100
|
+
else if (key.keyCode) {
|
|
101
|
+
this.key = Key.getKey(key.keyCode);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
this.ctrl = !!schema.ctrl;
|
|
105
|
+
this.shift = !!schema.shift;
|
|
106
|
+
this.alt = !!schema.alt;
|
|
107
|
+
this.meta = !!schema.meta;
|
|
108
|
+
this.character = schema.character;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Return true if this KeyCode only contains modifiers.
|
|
112
|
+
*/
|
|
113
|
+
isModifierOnly() {
|
|
114
|
+
return this.key === undefined;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Return true if the given KeyCode is equal to this one.
|
|
118
|
+
*/
|
|
119
|
+
equals(other) {
|
|
120
|
+
if (this.key && (!other.key || this.key.code !== other.key.code) || !this.key && other.key) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
return this.ctrl === other.ctrl && this.alt === other.alt && this.shift === other.shift && this.meta === other.meta;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 将KeyCode转换为可读的文本
|
|
127
|
+
* @returns
|
|
128
|
+
*/
|
|
129
|
+
toString() {
|
|
130
|
+
const result = [];
|
|
131
|
+
if (this.meta) {
|
|
132
|
+
result.push(ide_core_common_1.isOSX ? '⌘' : 'Win');
|
|
133
|
+
}
|
|
134
|
+
if (this.shift) {
|
|
135
|
+
result.push(toNormalCase(Key.SHIFT_LEFT.easyString));
|
|
136
|
+
}
|
|
137
|
+
if (this.alt) {
|
|
138
|
+
result.push(toNormalCase(Key.ALT_LEFT.easyString));
|
|
139
|
+
}
|
|
140
|
+
if (this.ctrl) {
|
|
141
|
+
result.push(toNormalCase(Key.CONTROL_LEFT.easyString));
|
|
142
|
+
}
|
|
143
|
+
if (this.key) {
|
|
144
|
+
result.push(toNormalCase(this.key.easyString));
|
|
145
|
+
}
|
|
146
|
+
return result.join('+');
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 转化多种类型值为KeyCode
|
|
150
|
+
*/
|
|
151
|
+
static createKeyCode(input) {
|
|
152
|
+
if (typeof input === 'string') {
|
|
153
|
+
const parts = input.split('+');
|
|
154
|
+
if (!KeyCode.isModifierString(parts[0])) {
|
|
155
|
+
return KeyCode.createKeyCode({
|
|
156
|
+
first: Key.getKey(parts[0]),
|
|
157
|
+
modifiers: parts.slice(1),
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return KeyCode.createKeyCode({ modifiers: parts });
|
|
161
|
+
}
|
|
162
|
+
else if (KeyCode.isKeyboardEvent(input)) {
|
|
163
|
+
const key = KeyCode.toKey(input);
|
|
164
|
+
return new KeyCode({
|
|
165
|
+
key: Key.isModifier(key.code) ? undefined : key,
|
|
166
|
+
meta: ide_core_common_1.isOSX && input.metaKey || (key === Key.OS_RIGHT || key === Key.OS_LEFT),
|
|
167
|
+
shift: input.shiftKey || (key === Key.SHIFT_RIGHT || key === Key.SHIFT_LEFT),
|
|
168
|
+
alt: input.altKey || (key === Key.ALT_RIGHT || key === Key.ALT_LEFT),
|
|
169
|
+
ctrl: input.ctrlKey || (key === Key.CONTROL_RIGHT || key === Key.CONTROL_LEFT),
|
|
170
|
+
character: KeyCode.toCharacter(input),
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
else if (input.first || input.modifiers) {
|
|
174
|
+
const keystroke = input;
|
|
175
|
+
const schema = {
|
|
176
|
+
key: keystroke.first,
|
|
177
|
+
};
|
|
178
|
+
if (keystroke.modifiers) {
|
|
179
|
+
if (ide_core_common_1.isOSX) {
|
|
180
|
+
schema.meta = keystroke.modifiers.some((mod) => mod === KeyModifier.CtrlCmd);
|
|
181
|
+
schema.ctrl = keystroke.modifiers.some((mod) => mod === KeyModifier.MacCtrl);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
schema.meta = false;
|
|
185
|
+
schema.ctrl = keystroke.modifiers.some((mod) => mod === KeyModifier.CtrlCmd);
|
|
186
|
+
}
|
|
187
|
+
schema.shift = keystroke.modifiers.some((mod) => mod === KeyModifier.Shift);
|
|
188
|
+
schema.alt = keystroke.modifiers.some((mod) => mod === KeyModifier.Alt);
|
|
189
|
+
}
|
|
190
|
+
return new KeyCode(schema);
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
return new KeyCode(input);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 通过快捷键字符串解析快捷键为KeyCode
|
|
198
|
+
* 默认支持的分隔符为 '+'
|
|
199
|
+
* @param keybinding
|
|
200
|
+
* @returns
|
|
201
|
+
*/
|
|
202
|
+
static parse(keybinding, separator = '+') {
|
|
203
|
+
if (KeyCode.keybindings[keybinding]) {
|
|
204
|
+
return KeyCode.keybindings[keybinding];
|
|
205
|
+
}
|
|
206
|
+
const schema = {};
|
|
207
|
+
const keys = keybinding.trim().toLowerCase().split(separator);
|
|
208
|
+
for (let keyString of keys) {
|
|
209
|
+
if (SPECIAL_ALIASES[keyString] !== undefined) {
|
|
210
|
+
keyString = SPECIAL_ALIASES[keyString];
|
|
211
|
+
}
|
|
212
|
+
const key = EASY_TO_KEY[keyString];
|
|
213
|
+
if (keyString === SpecialCases.META) {
|
|
214
|
+
if (ide_core_common_1.isOSX) {
|
|
215
|
+
schema.meta = true;
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
throw new Error(`Can't parse keybinding ${keybinding} meta is for OSX only`);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
else if (keyString === SpecialCases.MACMETA) {
|
|
222
|
+
if (ide_core_common_1.isOSX) {
|
|
223
|
+
schema.meta = true;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
throw new Error(`Can't parse keybinding ${keybinding} meta is for OSX only`);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else if (keyString === SpecialCases.CTRLCMD) {
|
|
230
|
+
if (ide_core_common_1.isOSX) {
|
|
231
|
+
schema.meta = true;
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
schema.ctrl = true;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
else if (keyString === SpecialCases.CTRL) {
|
|
238
|
+
schema.ctrl = true;
|
|
239
|
+
}
|
|
240
|
+
else if (keyString === SpecialCases.SHIFT) {
|
|
241
|
+
schema.shift = true;
|
|
242
|
+
}
|
|
243
|
+
else if (keyString === SpecialCases.ALT) {
|
|
244
|
+
schema.alt = true;
|
|
245
|
+
}
|
|
246
|
+
else if (keyString === SpecialCases.ARROW_DOWN) {
|
|
247
|
+
schema.key = Key.ARROW_DOWN;
|
|
248
|
+
}
|
|
249
|
+
else if (keyString === SpecialCases.ARROW_UP) {
|
|
250
|
+
schema.key = Key.ARROW_UP;
|
|
251
|
+
}
|
|
252
|
+
else if (keyString === SpecialCases.ARROW_LEFT) {
|
|
253
|
+
schema.key = Key.ARROW_LEFT;
|
|
254
|
+
}
|
|
255
|
+
else if (keyString === SpecialCases.ARROW_RIGHT) {
|
|
256
|
+
schema.key = Key.ARROW_RIGHT;
|
|
257
|
+
}
|
|
258
|
+
else if (keyString === SpecialCases.BACKSPACE) {
|
|
259
|
+
schema.key = Key.BACKSPACE;
|
|
260
|
+
}
|
|
261
|
+
else if (keyString === SpecialCases.ENTER) {
|
|
262
|
+
schema.key = Key.ENTER;
|
|
263
|
+
}
|
|
264
|
+
else if (Key.isKey(key)) {
|
|
265
|
+
if (Key.isModifier(key.code)) {
|
|
266
|
+
if (key.code === Key.CONTROL_LEFT.code || key.code === Key.CONTROL_RIGHT.code) {
|
|
267
|
+
schema.ctrl = true;
|
|
268
|
+
}
|
|
269
|
+
else if (key.code === Key.SHIFT_LEFT.code || key.code === Key.SHIFT_RIGHT.code) {
|
|
270
|
+
schema.shift = true;
|
|
271
|
+
}
|
|
272
|
+
else if (key.code === Key.ALT_LEFT.code || key.code === Key.ALT_RIGHT.code) {
|
|
273
|
+
schema.alt = true;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
schema.key = key;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
throw new Error(`Unrecognized key '${keyString}' in '${keybinding}'`);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
KeyCode.keybindings[keybinding] = new KeyCode(schema);
|
|
285
|
+
return KeyCode.keybindings[keybinding];
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
exports.KeyCode = KeyCode;
|
|
289
|
+
KeyCode.keybindings = {};
|
|
290
|
+
(function (KeyCode) {
|
|
291
|
+
/*
|
|
292
|
+
* Return true if the string is a modifier M1 to M4.
|
|
293
|
+
*/
|
|
294
|
+
function isModifierString(key) {
|
|
295
|
+
return key === KeyModifier.CtrlCmd
|
|
296
|
+
|| key === KeyModifier.Shift
|
|
297
|
+
|| key === KeyModifier.Alt
|
|
298
|
+
|| key === KeyModifier.MacCtrl;
|
|
299
|
+
}
|
|
300
|
+
KeyCode.isModifierString = isModifierString;
|
|
301
|
+
/**
|
|
302
|
+
* Different scopes have different execution environments. This means that they have different built-ins
|
|
303
|
+
* (different global object, different constructors, etc.). This may result in unexpected results. For instance,
|
|
304
|
+
* `[] instanceof window.frames[0].Array` will return `false`, because `Array.prototype !== window.frames[0].Array`
|
|
305
|
+
* and arrays inherit from the former.
|
|
306
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof
|
|
307
|
+
*
|
|
308
|
+
* Note: just add another check if the current `event.type` checking is insufficient.
|
|
309
|
+
*/
|
|
310
|
+
function isKeyboardEvent(event) {
|
|
311
|
+
if (typeof KeyboardEvent === 'undefined') { // This can happen in tests
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
if (event instanceof KeyboardEvent) {
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
const { type } = event;
|
|
318
|
+
if (type) {
|
|
319
|
+
return type === 'keypress' || type === 'keydown' || type === 'keyup';
|
|
320
|
+
}
|
|
321
|
+
return false;
|
|
322
|
+
}
|
|
323
|
+
KeyCode.isKeyboardEvent = isKeyboardEvent;
|
|
324
|
+
/**
|
|
325
|
+
* Determine the pressed key of a keyboard event. This key should correspond to the physical key according
|
|
326
|
+
* to a standard US keyboard layout. International keyboard layouts are handled by `KeyboardLayoutService`.
|
|
327
|
+
*
|
|
328
|
+
* `keyIdentifier` is used to access this deprecated field:
|
|
329
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyIdentifier
|
|
330
|
+
*/
|
|
331
|
+
function toKey(event) {
|
|
332
|
+
const code = event.code;
|
|
333
|
+
if (code) {
|
|
334
|
+
if (ide_core_common_1.isOSX) {
|
|
335
|
+
// https://github.com/eclipse-theia/theia/issues/4986
|
|
336
|
+
// ref: https://github.com/eclipse-theia/theia/pull/5063
|
|
337
|
+
// Mac 环境下由于键盘布局的差异,需要根据环境选择不同的键值映射确保按键能够正确映射
|
|
338
|
+
const char = event.key;
|
|
339
|
+
if (code === Key.INTL_BACKSLASH.code && (char === '`' || char === '~')) {
|
|
340
|
+
return Key.BACKQUOTE;
|
|
341
|
+
}
|
|
342
|
+
else if (code === Key.BACKQUOTE.code && (char === '§' || char === '±')) {
|
|
343
|
+
return Key.INTL_BACKSLASH;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
// 不同浏览器的 Meta 键位映射存在差异,需要通过 CODE_TO_KEY 处理
|
|
347
|
+
if (code === Key.SHIFT_LEFT.code && !event.ctrlKey && !event.altKey && !event.metaKey) {
|
|
348
|
+
return Key.SHIFT_LEFT;
|
|
349
|
+
}
|
|
350
|
+
else if (code === Key.SHIFT_RIGHT.code && !event.ctrlKey && !event.altKey && !event.metaKey) {
|
|
351
|
+
return Key.SHIFT_RIGHT;
|
|
352
|
+
}
|
|
353
|
+
else if (code === Key.CONTROL_LEFT.code && !event.shiftKey && !event.altKey && !event.metaKey) {
|
|
354
|
+
return Key.CONTROL_LEFT;
|
|
355
|
+
}
|
|
356
|
+
else if (code === Key.CONTROL_RIGHT.code && !event.shiftKey && !event.altKey && !event.metaKey) {
|
|
357
|
+
return Key.CONTROL_RIGHT;
|
|
358
|
+
}
|
|
359
|
+
else if (code === Key.ALT_LEFT.code && !event.shiftKey && !event.ctrlKey && !event.metaKey) {
|
|
360
|
+
return Key.ALT_LEFT;
|
|
361
|
+
}
|
|
362
|
+
else if (code === Key.ALT_RIGHT.code && !event.shiftKey && !event.ctrlKey && !event.metaKey) {
|
|
363
|
+
return Key.ALT_RIGHT;
|
|
364
|
+
}
|
|
365
|
+
else if (CODE_TO_KEY[code] === Key.OS_LEFT && !event.shiftKey && !event.ctrlKey && !event.altKey) {
|
|
366
|
+
return Key.OS_LEFT;
|
|
367
|
+
}
|
|
368
|
+
else if (CODE_TO_KEY[code] === Key.OS_RIGHT && !event.shiftKey && !event.ctrlKey && !event.altKey) {
|
|
369
|
+
return Key.OS_RIGHT;
|
|
370
|
+
}
|
|
371
|
+
if (code.startsWith('Numpad') && event.key && event.key.length > 1) {
|
|
372
|
+
const k = Key.getKey(event.key);
|
|
373
|
+
if (k) {
|
|
374
|
+
return k;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
const key = Key.getKey(code);
|
|
378
|
+
if (key) {
|
|
379
|
+
return key;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
// tslint:disable-next-line: deprecation
|
|
383
|
+
const keyCode = event.keyCode;
|
|
384
|
+
if (keyCode) {
|
|
385
|
+
const key = Key.getKey(keyCode);
|
|
386
|
+
if (key) {
|
|
387
|
+
return key;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
const keyIdentifier = event.keyIdentifier;
|
|
391
|
+
if (keyIdentifier) {
|
|
392
|
+
const key = Key.getKey(keyIdentifier);
|
|
393
|
+
if (key) {
|
|
394
|
+
return key;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
throw new Error(`Cannot get key code from the keyboard event with code: ${code}, keyCode: ${keyCode}, keyIdentifier: ${keyIdentifier}`);
|
|
398
|
+
}
|
|
399
|
+
KeyCode.toKey = toKey;
|
|
400
|
+
/**
|
|
401
|
+
* Determine the actual printable character that is generated from a pressed key.
|
|
402
|
+
* If the key does not correspond to a printable character, `undefined` is returned.
|
|
403
|
+
* The result may be altered by modifier keys.
|
|
404
|
+
*/
|
|
405
|
+
function toCharacter(event) {
|
|
406
|
+
const key = event.key;
|
|
407
|
+
// Use the key property if it contains exactly one unicode character
|
|
408
|
+
if (key && Array.from(key).length === 1) {
|
|
409
|
+
return key;
|
|
410
|
+
}
|
|
411
|
+
const charCode = event.charCode;
|
|
412
|
+
// Use the charCode property if it does not correspond to a unicode control character
|
|
413
|
+
if (charCode && charCode > 0x1f && !(charCode >= 0x80 && charCode <= 0x9f)) {
|
|
414
|
+
return String.fromCharCode(charCode);
|
|
415
|
+
}
|
|
416
|
+
return undefined;
|
|
417
|
+
}
|
|
418
|
+
KeyCode.toCharacter = toCharacter;
|
|
419
|
+
})(KeyCode = exports.KeyCode || (exports.KeyCode = {}));
|
|
420
|
+
var KeyModifier;
|
|
421
|
+
(function (KeyModifier) {
|
|
422
|
+
/**
|
|
423
|
+
* M1 is the COMMAND key on MacOS X, and the CTRL key on most other platforms.
|
|
424
|
+
*/
|
|
425
|
+
KeyModifier["CtrlCmd"] = "M1";
|
|
426
|
+
/**
|
|
427
|
+
* M2 is the SHIFT key.
|
|
428
|
+
*/
|
|
429
|
+
KeyModifier["Shift"] = "M2";
|
|
430
|
+
/**
|
|
431
|
+
* M3 is the Option key on MacOS X, and the ALT key on most other platforms.
|
|
432
|
+
*/
|
|
433
|
+
KeyModifier["Alt"] = "M3";
|
|
434
|
+
/**
|
|
435
|
+
* M4 is the CTRL key on MacOS X, and is undefined on other platforms.
|
|
436
|
+
*/
|
|
437
|
+
KeyModifier["MacCtrl"] = "M4";
|
|
438
|
+
})(KeyModifier = exports.KeyModifier || (exports.KeyModifier = {}));
|
|
439
|
+
(function (KeyModifier) {
|
|
440
|
+
/**
|
|
441
|
+
* The CTRL key, independently of the platform.
|
|
442
|
+
* _Note:_ In general `KeyModifier.CtrlCmd` should be preferred over this constant.
|
|
443
|
+
*/
|
|
444
|
+
KeyModifier.CTRL = ide_core_common_1.isOSX ? KeyModifier.MacCtrl : KeyModifier.CtrlCmd;
|
|
445
|
+
/**
|
|
446
|
+
* An alias for the SHIFT key (`KeyModifier.Shift`).
|
|
447
|
+
*/
|
|
448
|
+
KeyModifier.SHIFT = KeyModifier.Shift;
|
|
449
|
+
/**
|
|
450
|
+
* `true` if the argument represents a modifier. Otherwise, `false`.
|
|
451
|
+
*/
|
|
452
|
+
function isModifier(key) {
|
|
453
|
+
if (key) {
|
|
454
|
+
switch (key) {
|
|
455
|
+
case 'M1': // Fall through.
|
|
456
|
+
case 'M2': // Fall through.
|
|
457
|
+
case 'M3': // Fall through.
|
|
458
|
+
case 'M4': return true;
|
|
459
|
+
default: return false;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
return false;
|
|
463
|
+
}
|
|
464
|
+
KeyModifier.isModifier = isModifier;
|
|
465
|
+
})(KeyModifier = exports.KeyModifier || (exports.KeyModifier = {}));
|
|
466
|
+
const CODE_TO_KEY = {};
|
|
467
|
+
const KEY_CODE_TO_KEY = {};
|
|
468
|
+
const EASY_TO_KEY = {}; // From 'ctrl' to Key structure
|
|
469
|
+
const MODIFIERS = [];
|
|
470
|
+
const SPECIAL_ALIASES = {
|
|
471
|
+
'option': 'alt',
|
|
472
|
+
'command': 'meta',
|
|
473
|
+
'cmd': 'meta',
|
|
474
|
+
'return': 'enter',
|
|
475
|
+
'esc': 'escape',
|
|
476
|
+
'mod': 'ctrl',
|
|
477
|
+
'ins': 'insert',
|
|
478
|
+
'del': 'delete',
|
|
479
|
+
'control': 'ctrl',
|
|
480
|
+
};
|
|
481
|
+
var SpecialCases;
|
|
482
|
+
(function (SpecialCases) {
|
|
483
|
+
SpecialCases.META = ide_core_common_1.isOSX ? 'meta' : platform_1.isWindows ? 'win' : 'meta';
|
|
484
|
+
SpecialCases.MACMETA = '⌘';
|
|
485
|
+
SpecialCases.CTRL = ide_core_common_1.isOSX ? '⌃' : 'ctrl';
|
|
486
|
+
SpecialCases.ALT = ide_core_common_1.isOSX ? '⌥' : 'alt';
|
|
487
|
+
SpecialCases.SHIFT = ide_core_common_1.isOSX ? '⇧' : 'shift';
|
|
488
|
+
SpecialCases.CTRLCMD = 'ctrlcmd';
|
|
489
|
+
SpecialCases.ARROW_LEFT = '←';
|
|
490
|
+
SpecialCases.ARROW_RIGHT = '→';
|
|
491
|
+
SpecialCases.ARROW_UP = '↑';
|
|
492
|
+
SpecialCases.ARROW_DOWN = '↓';
|
|
493
|
+
SpecialCases.BACKSPACE = '⌫';
|
|
494
|
+
SpecialCases.ENTER = '⏎';
|
|
495
|
+
SpecialCases.SPACE = 'space';
|
|
496
|
+
SpecialCases.NUMPAD = 'numpad';
|
|
497
|
+
})(SpecialCases = exports.SpecialCases || (exports.SpecialCases = {}));
|
|
498
|
+
var Key;
|
|
499
|
+
(function (Key) {
|
|
500
|
+
// tslint:disable-next-line:no-any
|
|
501
|
+
function isKey(arg) {
|
|
502
|
+
return typeof arg === 'object' && ('code' in arg) && ('keyCode' in arg);
|
|
503
|
+
}
|
|
504
|
+
Key.isKey = isKey;
|
|
505
|
+
function getKey(arg) {
|
|
506
|
+
if (typeof arg === 'number') {
|
|
507
|
+
return KEY_CODE_TO_KEY[arg];
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
return CODE_TO_KEY[arg];
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
Key.getKey = getKey;
|
|
514
|
+
function isModifier(arg) {
|
|
515
|
+
if (typeof arg === 'number') {
|
|
516
|
+
return MODIFIERS.find((key) => key.keyCode === arg) !== undefined;
|
|
517
|
+
}
|
|
518
|
+
return MODIFIERS.find((key) => key.code === arg) !== undefined;
|
|
519
|
+
}
|
|
520
|
+
Key.isModifier = isModifier;
|
|
521
|
+
function equals(key, keyCode) {
|
|
522
|
+
return !!keyCode.key && key.keyCode === keyCode.key.keyCode;
|
|
523
|
+
}
|
|
524
|
+
Key.equals = equals;
|
|
525
|
+
Key.BACKSPACE = { code: 'Backspace', keyCode: 8, easyString: 'backspace' };
|
|
526
|
+
Key.TAB = { code: 'Tab', keyCode: 9, easyString: 'tab' };
|
|
527
|
+
Key.ENTER = { code: 'Enter', keyCode: 13, easyString: 'enter' };
|
|
528
|
+
Key.ESCAPE = { code: 'Escape', keyCode: 27, easyString: 'escape' };
|
|
529
|
+
Key.SPACE = { code: 'Space', keyCode: 32, easyString: 'space' };
|
|
530
|
+
Key.PAGE_UP = { code: 'PageUp', keyCode: 33, easyString: 'pageup' };
|
|
531
|
+
Key.PAGE_DOWN = { code: 'PageDown', keyCode: 34, easyString: 'pagedown' };
|
|
532
|
+
Key.END = { code: 'End', keyCode: 35, easyString: 'end' };
|
|
533
|
+
Key.HOME = { code: 'Home', keyCode: 36, easyString: 'home' };
|
|
534
|
+
Key.ARROW_LEFT = { code: 'ArrowLeft', keyCode: 37, easyString: 'left' };
|
|
535
|
+
Key.ARROW_UP = { code: 'ArrowUp', keyCode: 38, easyString: 'up' };
|
|
536
|
+
Key.ARROW_RIGHT = { code: 'ArrowRight', keyCode: 39, easyString: 'right' };
|
|
537
|
+
Key.ARROW_DOWN = { code: 'ArrowDown', keyCode: 40, easyString: 'down' };
|
|
538
|
+
Key.INSERT = { code: 'Insert', keyCode: 45, easyString: 'insert' };
|
|
539
|
+
Key.DELETE = { code: 'Delete', keyCode: 46, easyString: 'delete' };
|
|
540
|
+
Key.SHIFT_LEFT = { code: 'ShiftLeft', keyCode: 16, easyString: 'shift' };
|
|
541
|
+
Key.SHIFT_RIGHT = { code: 'ShiftRight', keyCode: 16, easyString: 'shift' };
|
|
542
|
+
Key.CONTROL_LEFT = { code: 'ControlLeft', keyCode: 17, easyString: 'ctrl' };
|
|
543
|
+
Key.CONTROL_RIGHT = { code: 'ControlRight', keyCode: 17, easyString: 'ctrl' };
|
|
544
|
+
Key.ALT_LEFT = { code: 'AltLeft', keyCode: 18, easyString: 'alt' };
|
|
545
|
+
Key.ALT_RIGHT = { code: 'AltRight', keyCode: 18, easyString: 'alt' };
|
|
546
|
+
Key.CAPS_LOCK = { code: 'CapsLock', keyCode: 20, easyString: 'capslock' };
|
|
547
|
+
Key.OS_LEFT = { code: 'OSLeft', keyCode: 91, easyString: 'super' };
|
|
548
|
+
Key.OS_RIGHT = { code: 'OSRight', keyCode: 92, easyString: 'super' };
|
|
549
|
+
Key.DIGIT0 = { code: 'Digit0', keyCode: 48, easyString: '0' };
|
|
550
|
+
Key.DIGIT1 = { code: 'Digit1', keyCode: 49, easyString: '1' };
|
|
551
|
+
Key.DIGIT2 = { code: 'Digit2', keyCode: 50, easyString: '2' };
|
|
552
|
+
Key.DIGIT3 = { code: 'Digit3', keyCode: 51, easyString: '3' };
|
|
553
|
+
Key.DIGIT4 = { code: 'Digit4', keyCode: 52, easyString: '4' };
|
|
554
|
+
Key.DIGIT5 = { code: 'Digit5', keyCode: 53, easyString: '5' };
|
|
555
|
+
Key.DIGIT6 = { code: 'Digit6', keyCode: 54, easyString: '6' };
|
|
556
|
+
Key.DIGIT7 = { code: 'Digit7', keyCode: 55, easyString: '7' };
|
|
557
|
+
Key.DIGIT8 = { code: 'Digit8', keyCode: 56, easyString: '8' };
|
|
558
|
+
Key.DIGIT9 = { code: 'Digit9', keyCode: 57, easyString: '9' };
|
|
559
|
+
Key.NUMPAD0 = { code: 'Numpad0', keyCode: 48, easyString: 'numpad0' };
|
|
560
|
+
Key.NUMPAD1 = { code: 'Numpad1', keyCode: 49, easyString: 'numpad1' };
|
|
561
|
+
Key.NUMPAD2 = { code: 'Numpad2', keyCode: 50, easyString: 'numpad2' };
|
|
562
|
+
Key.NUMPAD3 = { code: 'Numpad3', keyCode: 51, easyString: 'numpad3' };
|
|
563
|
+
Key.NUMPAD4 = { code: 'Numpad4', keyCode: 52, easyString: 'numpad4' };
|
|
564
|
+
Key.NUMPAD5 = { code: 'Numpad5', keyCode: 53, easyString: 'numpad5' };
|
|
565
|
+
Key.NUMPAD6 = { code: 'Numpad6', keyCode: 54, easyString: 'numpad6' };
|
|
566
|
+
Key.NUMPAD7 = { code: 'Numpad7', keyCode: 55, easyString: 'numpad7' };
|
|
567
|
+
Key.NUMPAD8 = { code: 'Numpad8', keyCode: 56, easyString: 'numpad8' };
|
|
568
|
+
Key.NUMPAD9 = { code: 'Numpad9', keyCode: 57, easyString: 'numpad9' };
|
|
569
|
+
Key.KEY_A = { code: 'KeyA', keyCode: 65, easyString: 'a' };
|
|
570
|
+
Key.KEY_B = { code: 'KeyB', keyCode: 66, easyString: 'b' };
|
|
571
|
+
Key.KEY_C = { code: 'KeyC', keyCode: 67, easyString: 'c' };
|
|
572
|
+
Key.KEY_D = { code: 'KeyD', keyCode: 68, easyString: 'd' };
|
|
573
|
+
Key.KEY_E = { code: 'KeyE', keyCode: 69, easyString: 'e' };
|
|
574
|
+
Key.KEY_F = { code: 'KeyF', keyCode: 70, easyString: 'f' };
|
|
575
|
+
Key.KEY_G = { code: 'KeyG', keyCode: 71, easyString: 'g' };
|
|
576
|
+
Key.KEY_H = { code: 'KeyH', keyCode: 72, easyString: 'h' };
|
|
577
|
+
Key.KEY_I = { code: 'KeyI', keyCode: 73, easyString: 'i' };
|
|
578
|
+
Key.KEY_J = { code: 'KeyJ', keyCode: 74, easyString: 'j' };
|
|
579
|
+
Key.KEY_K = { code: 'KeyK', keyCode: 75, easyString: 'k' };
|
|
580
|
+
Key.KEY_L = { code: 'KeyL', keyCode: 76, easyString: 'l' };
|
|
581
|
+
Key.KEY_M = { code: 'KeyM', keyCode: 77, easyString: 'm' };
|
|
582
|
+
Key.KEY_N = { code: 'KeyN', keyCode: 78, easyString: 'n' };
|
|
583
|
+
Key.KEY_O = { code: 'KeyO', keyCode: 79, easyString: 'o' };
|
|
584
|
+
Key.KEY_P = { code: 'KeyP', keyCode: 80, easyString: 'p' };
|
|
585
|
+
Key.KEY_Q = { code: 'KeyQ', keyCode: 81, easyString: 'q' };
|
|
586
|
+
Key.KEY_R = { code: 'KeyR', keyCode: 82, easyString: 'r' };
|
|
587
|
+
Key.KEY_S = { code: 'KeyS', keyCode: 83, easyString: 's' };
|
|
588
|
+
Key.KEY_T = { code: 'KeyT', keyCode: 84, easyString: 't' };
|
|
589
|
+
Key.KEY_U = { code: 'KeyU', keyCode: 85, easyString: 'u' };
|
|
590
|
+
Key.KEY_V = { code: 'KeyV', keyCode: 86, easyString: 'v' };
|
|
591
|
+
Key.KEY_W = { code: 'KeyW', keyCode: 87, easyString: 'w' };
|
|
592
|
+
Key.KEY_X = { code: 'KeyX', keyCode: 88, easyString: 'x' };
|
|
593
|
+
Key.KEY_Y = { code: 'KeyY', keyCode: 89, easyString: 'y' };
|
|
594
|
+
Key.KEY_Z = { code: 'KeyZ', keyCode: 90, easyString: 'z' };
|
|
595
|
+
Key.NUMPAD_MULTIPLY = { code: 'NumpadMultiply', keyCode: 106, easyString: 'numpad_multiply' };
|
|
596
|
+
Key.NUMPAD_ADD = { code: 'NumpadAdd', keyCode: 107, easyString: 'numpad_add' };
|
|
597
|
+
Key.NUMPAD_DECIMAL = { code: 'NumpadDecimal', keyCode: 108, easyString: 'numpad_decimal' };
|
|
598
|
+
Key.NUMPAD_SUBTRACT = { code: 'NumpadSubtract', keyCode: 109, easyString: 'numpad_subtract' };
|
|
599
|
+
Key.NUMPAD_DIVIDE = { code: 'NumpadDivide', keyCode: 111, easyString: 'numpad_divide' };
|
|
600
|
+
Key.F1 = { code: 'F1', keyCode: 112, easyString: 'f1' };
|
|
601
|
+
Key.F2 = { code: 'F2', keyCode: 113, easyString: 'f2' };
|
|
602
|
+
Key.F3 = { code: 'F3', keyCode: 114, easyString: 'f3' };
|
|
603
|
+
Key.F4 = { code: 'F4', keyCode: 115, easyString: 'f4' };
|
|
604
|
+
Key.F5 = { code: 'F5', keyCode: 116, easyString: 'f5' };
|
|
605
|
+
Key.F6 = { code: 'F6', keyCode: 117, easyString: 'f6' };
|
|
606
|
+
Key.F7 = { code: 'F7', keyCode: 118, easyString: 'f7' };
|
|
607
|
+
Key.F8 = { code: 'F8', keyCode: 119, easyString: 'f8' };
|
|
608
|
+
Key.F9 = { code: 'F9', keyCode: 120, easyString: 'f9' };
|
|
609
|
+
Key.F10 = { code: 'F10', keyCode: 121, easyString: 'f10' };
|
|
610
|
+
Key.F11 = { code: 'F11', keyCode: 122, easyString: 'f11' };
|
|
611
|
+
Key.F12 = { code: 'F12', keyCode: 123, easyString: 'f12' };
|
|
612
|
+
Key.F13 = { code: 'F13', keyCode: 124, easyString: 'f13' };
|
|
613
|
+
Key.F14 = { code: 'F14', keyCode: 125, easyString: 'f14' };
|
|
614
|
+
Key.F15 = { code: 'F15', keyCode: 126, easyString: 'f15' };
|
|
615
|
+
Key.F16 = { code: 'F16', keyCode: 127, easyString: 'f16' };
|
|
616
|
+
Key.F17 = { code: 'F17', keyCode: 128, easyString: 'f17' };
|
|
617
|
+
Key.F18 = { code: 'F18', keyCode: 129, easyString: 'f18' };
|
|
618
|
+
Key.F19 = { code: 'F19', keyCode: 130, easyString: 'f19' };
|
|
619
|
+
Key.F20 = { code: 'F20', keyCode: 131, easyString: 'f20' };
|
|
620
|
+
Key.F21 = { code: 'F21', keyCode: 132, easyString: 'f21' };
|
|
621
|
+
Key.F22 = { code: 'F22', keyCode: 133, easyString: 'f22' };
|
|
622
|
+
Key.F23 = { code: 'F23', keyCode: 134, easyString: 'f23' };
|
|
623
|
+
Key.F24 = { code: 'F24', keyCode: 135, easyString: 'f24' };
|
|
624
|
+
Key.NUM_LOCK = { code: 'NumLock', keyCode: 144, easyString: 'numlock' };
|
|
625
|
+
Key.SEMICOLON = { code: 'Semicolon', keyCode: 186, easyString: ';' };
|
|
626
|
+
Key.EQUAL = { code: 'Equal', keyCode: 187, easyString: '=' };
|
|
627
|
+
Key.COMMA = { code: 'Comma', keyCode: 188, easyString: ',' };
|
|
628
|
+
Key.MINUS = { code: 'Minus', keyCode: 189, easyString: '-' };
|
|
629
|
+
Key.PERIOD = { code: 'Period', keyCode: 190, easyString: '.' };
|
|
630
|
+
Key.SLASH = { code: 'Slash', keyCode: 191, easyString: '/' };
|
|
631
|
+
Key.BACKQUOTE = { code: 'Backquote', keyCode: 192, easyString: '`' };
|
|
632
|
+
Key.INTL_RO = { code: 'IntlRo', keyCode: 193, easyString: 'intlro' };
|
|
633
|
+
Key.BRACKET_LEFT = { code: 'BracketLeft', keyCode: 219, easyString: '[' };
|
|
634
|
+
Key.BACKSLASH = { code: 'Backslash', keyCode: 220, easyString: '\\' };
|
|
635
|
+
Key.BRACKET_RIGHT = { code: 'BracketRight', keyCode: 221, easyString: ']' };
|
|
636
|
+
Key.QUOTE = { code: 'Quote', keyCode: 222, easyString: '\'' };
|
|
637
|
+
Key.INTL_BACKSLASH = { code: 'IntlBackslash', keyCode: 229, easyString: 'intlbackslash' };
|
|
638
|
+
Key.INTL_YEN = { code: 'IntlYen', keyCode: 255, easyString: 'intlyen' };
|
|
639
|
+
Key.MAX_KEY_CODE = Key.INTL_YEN.keyCode;
|
|
640
|
+
})(Key = exports.Key || (exports.Key = {}));
|
|
641
|
+
/*-------------------- Initialize the static key mappings --------------------*/
|
|
642
|
+
(() => {
|
|
643
|
+
// Set the default key mappings from the constants in the Key namespace
|
|
644
|
+
Object.keys(Key).map((prop) => Reflect.get(Key, prop)).filter((key) => Key.isKey(key)).forEach((key) => {
|
|
645
|
+
CODE_TO_KEY[key.code] = key;
|
|
646
|
+
KEY_CODE_TO_KEY[key.keyCode] = key;
|
|
647
|
+
EASY_TO_KEY[key.easyString] = key;
|
|
648
|
+
});
|
|
649
|
+
// Set additional key mappings
|
|
650
|
+
CODE_TO_KEY.Numpad0 = Key.DIGIT0;
|
|
651
|
+
KEY_CODE_TO_KEY[96] = Key.DIGIT0;
|
|
652
|
+
CODE_TO_KEY.Numpad1 = Key.DIGIT1;
|
|
653
|
+
KEY_CODE_TO_KEY[97] = Key.DIGIT1;
|
|
654
|
+
CODE_TO_KEY.Numpad2 = Key.DIGIT2;
|
|
655
|
+
KEY_CODE_TO_KEY[98] = Key.DIGIT2;
|
|
656
|
+
CODE_TO_KEY.Numpad3 = Key.DIGIT3;
|
|
657
|
+
KEY_CODE_TO_KEY[99] = Key.DIGIT3;
|
|
658
|
+
CODE_TO_KEY.Numpad4 = Key.DIGIT4;
|
|
659
|
+
KEY_CODE_TO_KEY[100] = Key.DIGIT4;
|
|
660
|
+
CODE_TO_KEY.Numpad5 = Key.DIGIT5;
|
|
661
|
+
KEY_CODE_TO_KEY[101] = Key.DIGIT5;
|
|
662
|
+
CODE_TO_KEY.Numpad6 = Key.DIGIT6;
|
|
663
|
+
KEY_CODE_TO_KEY[102] = Key.DIGIT6;
|
|
664
|
+
CODE_TO_KEY.Numpad7 = Key.DIGIT7;
|
|
665
|
+
KEY_CODE_TO_KEY[103] = Key.DIGIT7;
|
|
666
|
+
CODE_TO_KEY.Numpad8 = Key.DIGIT8;
|
|
667
|
+
KEY_CODE_TO_KEY[104] = Key.DIGIT8;
|
|
668
|
+
CODE_TO_KEY.Numpad9 = Key.DIGIT9;
|
|
669
|
+
KEY_CODE_TO_KEY[105] = Key.DIGIT9;
|
|
670
|
+
CODE_TO_KEY.NumpadEnter = Key.ENTER;
|
|
671
|
+
CODE_TO_KEY.NumpadEqual = Key.EQUAL;
|
|
672
|
+
CODE_TO_KEY.MetaLeft = Key.OS_LEFT; // Chrome, Safari
|
|
673
|
+
KEY_CODE_TO_KEY[224] = Key.OS_LEFT; // Firefox on Mac
|
|
674
|
+
CODE_TO_KEY.MetaRight = Key.OS_RIGHT; // Chrome, Safari
|
|
675
|
+
KEY_CODE_TO_KEY[93] = Key.OS_RIGHT; // Chrome, Safari, Edge
|
|
676
|
+
KEY_CODE_TO_KEY[225] = Key.ALT_RIGHT; // Linux
|
|
677
|
+
KEY_CODE_TO_KEY[110] = Key.NUMPAD_DECIMAL; // Mac, Windows
|
|
678
|
+
KEY_CODE_TO_KEY[59] = Key.SEMICOLON; // Firefox
|
|
679
|
+
KEY_CODE_TO_KEY[61] = Key.EQUAL; // Firefox
|
|
680
|
+
KEY_CODE_TO_KEY[173] = Key.MINUS; // Firefox
|
|
681
|
+
KEY_CODE_TO_KEY[226] = Key.BACKSLASH; // Chrome, Edge on Windows
|
|
682
|
+
KEY_CODE_TO_KEY[60] = Key.BACKSLASH; // Firefox on Linux
|
|
683
|
+
// Set the modifier keys
|
|
684
|
+
MODIFIERS.push(...[Key.ALT_LEFT, Key.ALT_RIGHT, Key.CONTROL_LEFT, Key.CONTROL_RIGHT, Key.OS_LEFT, Key.OS_RIGHT, Key.SHIFT_LEFT, Key.SHIFT_RIGHT]);
|
|
685
|
+
})();
|
|
686
|
+
var KeysOrKeyCodes;
|
|
687
|
+
(function (KeysOrKeyCodes) {
|
|
688
|
+
KeysOrKeyCodes.toKeyCode = (keyOrKeyCode) => keyOrKeyCode instanceof KeyCode ? keyOrKeyCode : KeyCode.createKeyCode({ first: keyOrKeyCode });
|
|
689
|
+
KeysOrKeyCodes.toKeyCodes = (keysOrKeyCodes) => {
|
|
690
|
+
if (keysOrKeyCodes instanceof KeyCode) {
|
|
691
|
+
return [keysOrKeyCodes];
|
|
692
|
+
}
|
|
693
|
+
else if (Array.isArray(keysOrKeyCodes)) {
|
|
694
|
+
return keysOrKeyCodes.slice().map(KeysOrKeyCodes.toKeyCode);
|
|
695
|
+
}
|
|
696
|
+
return [KeysOrKeyCodes.toKeyCode(keysOrKeyCodes)];
|
|
697
|
+
};
|
|
698
|
+
})(KeysOrKeyCodes = exports.KeysOrKeyCodes || (exports.KeysOrKeyCodes = {}));
|
|
699
|
+
//# sourceMappingURL=keys.js.map
|