Commit graph

2 commits

Author SHA1 Message Date
Eric Huss
c5c31bb9f5 Fix global keypress handler with the ACE editor
This fixes an issue where pressing `?` inside the ACE editor was opening
the help popup. The solution here is to ensure that the global keypress
handler works the same as the one used in the search handler.

Fortunately other keypresses like left and right were working OK because
ACE was doing something like stopPropagation (I'm not sure exactly).

Fixes https://github.com/rust-lang/mdBook/issues/3064
2026-05-04 11:48:41 -07:00
Eric Huss
4adc4b08ba Add a test for global keypress with ACE editor focused
This is a regression test for
https://github.com/rust-lang/mdBook/issues/3064.
2026-04-27 15:32:09 -07:00