Review 13.4 Merged

89833[BUGFIX] Prevent modals from closing on Escape in search

Oli Bartsch CR +2 V +2 Normal +60 −2 updated 06/24/25, 09:29

Commit message

When pressing Escape inside an input[type="search"],
browsers clear the input value by default. However,
Bootstrap modals also listen for Escape globally and
close the modal, which is unintended in this case.

This change stops Escape key propagation when a
search input is focused, allowing only the input to
clear, but keeping the modal open.

The event listener is registered in the capture phase
to ensure it runs before Bootstrap's internal handler.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 5

Review log 34

  1. Oli Bartsch uploaded patch set 1 06/24/25, 09:17

  2. core-ci voted on patch set 1 V +1 06/24/25, 09:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/80708

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 06/24/25, 09:29

  4. Oli Bartsch merged patch set 2 06/24/25, 09:29