mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-10 07:14:04 +02:00
This solves [bug 1989406](https://bugzilla.mozilla.org/show_bug.cgi?id=1989406). (“The user should be able to dismiss the in-content message displayed by clicking somewhere else in the PDF”) There’s a good gif there that shows the problematic behavior. In the thread, there are also mentions of 2 similar but slightly separate problems: * clicking on another highlight should also dismiss * the mention that hitting the escape key does not dismiss I found the last point, the escape key, to work already (first test case here). But this PR solves the main bug (second test case) and the adjacent one (third test case). It works by using the existing `unselectAll` handling.