@pi-unipi/input-shortcuts 0.1.2 → 2.0.0
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/package.json +1 -1
- package/src/index.ts +2 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -367,8 +367,7 @@ export default function inputShortcutsExtension(pi: ExtensionAPI): void {
|
|
|
367
367
|
|
|
368
368
|
// ─── Info-screen registration ────────────────────────────────────────────
|
|
369
369
|
|
|
370
|
-
const
|
|
371
|
-
const registry = globalObj.__unipi_info_registry;
|
|
370
|
+
const registry = globalThis.__unipi_info_registry;
|
|
372
371
|
if (registry) {
|
|
373
372
|
registry.registerGroup({
|
|
374
373
|
id: "input-shortcuts",
|
|
@@ -402,7 +401,7 @@ export default function inputShortcutsExtension(pi: ExtensionAPI): void {
|
|
|
402
401
|
|
|
403
402
|
// ─── Module ready event ──────────────────────────────────────────────────
|
|
404
403
|
|
|
405
|
-
emitEvent(pi
|
|
404
|
+
emitEvent(pi, UNIPI_EVENTS.MODULE_READY, {
|
|
406
405
|
name: MODULES.INPUT_SHORTCUTS,
|
|
407
406
|
version: "0.1.0",
|
|
408
407
|
commands: [`unipi:${INPUT_SHORTCUTS_COMMANDS.STASH_SETTINGS}`],
|