From cdf8611e0b9dfc74b10dbee6a524000f4653a263 Mon Sep 17 00:00:00 2001 From: dareka <214821936+darekadareka@users.noreply.github.com> Date: Fri, 6 Feb 2026 01:31:44 +0200 Subject: [PATCH] fix: `MaxListenersExceededWarning` (#2058) --- packages/wxt/src/core/keyboard-shortcuts.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/wxt/src/core/keyboard-shortcuts.ts b/packages/wxt/src/core/keyboard-shortcuts.ts index 0dfba014..c2652a53 100644 --- a/packages/wxt/src/core/keyboard-shortcuts.ts +++ b/packages/wxt/src/core/keyboard-shortcuts.ts @@ -26,6 +26,8 @@ export function createKeyboardShortcuts( return { start() { + this.stop(); + rl ??= readline.createInterface({ input: process.stdin, terminal: false, // Don't intercept ctrl+C, ctrl+Z, etc