Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.24 ·

Keyboard Event Propagation Control

Entry
JSON All of v2.0.24
EntryKind: in v2.0.24,
ChangesSection of the release

What: Keyboard event handlers can now stop event propagation to other handlers using event.stopImmediatePropagation().

How to use:

// For developers building on Claude Code's UI framework
useInput((input, key, event) => {
  if (input === 'q' && shouldQuit) {
    event.stopImmediatePropagation();  // Prevent other handlers from running
    handleQuit();
  }
});

Details:

  • Third parameter added to keyboard event handlers containing the event object
  • Enables priority-based event handling for modal dialogs, focus management, and vim-mode implementations
  • Backward compatible - existing handlers with 2 parameters continue to work
  • Implements DOM-style event propagation patterns
  • Evidence: New VO1 event class at line 71066, B11 base class with stopImmediatePropagation() at line 69922, and updated callback signature in QT9() at line 71693 in pretty-v2.0.24.js

See this entry in the whole of v2.0.24 →

Feedback