{"version":"2.0.24","anchor":"keyboard-event-propagation-control","canonical_anchor":"keyboard-event-propagation-control","heading":"Keyboard Event Propagation Control","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.24\/e\/keyboard-event-propagation-control","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.24","markdown":"### Keyboard Event Propagation Control\n\n**What:** Keyboard event handlers can now stop event propagation to other handlers using `event.stopImmediatePropagation()`.\n\n**How to use:**\n\n`\/\/ 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:**\n\n- Third parameter added to keyboard event handlers containing the event object\n- Enables priority-based event handling for modal dialogs, focus management, and vim-mode implementations\n- Backward compatible - existing handlers with 2 parameters continue to work\n- Implements DOM-style event propagation patterns\n- **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"}