From 4f0be05ef6bcc2a69cff1414801310419f3a0cd8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 23 May 2025 19:29:35 +0000 Subject: [PATCH 1/2] Initial plan for issue From a2616baaf0c121a94950037edbc914656604d2ce Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 23 May 2025 19:39:43 +0000 Subject: [PATCH 2/2] Update ID generation logic to add dash between prefix and number Co-authored-by: mathis-m <11584315+mathis-m@users.noreply.github.com> --- src/Keyborg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Keyborg.ts b/src/Keyborg.ts index 0a532b42b..465d1470d 100644 --- a/src/Keyborg.ts +++ b/src/Keyborg.ts @@ -48,7 +48,7 @@ class KeyborgCore implements Disposable { private _isNavigatingWithKeyboard_DO_NOT_USE = false; constructor(win: WindowWithKeyborg, props?: KeyborgProps) { - this.id = "c" + ++_lastId; + this.id = "c-" + ++_lastId; this._win = win; const doc = win.document; @@ -291,7 +291,7 @@ export class Keyborg { } private constructor(win: WindowWithKeyborg, props?: KeyborgProps) { - this._id = "k" + ++_lastId; + this._id = "k-" + ++_lastId; this._win = win; const current = win.__keyborg;