haddock: Fix quickjump menu regression with the "s" shortcut
This MR ports the PR from https://github.com/haskell/haddock/pull/1522 which somehow didn't make it into the subtree merge.
It reverts https://github.com/haskell/haddock/commit/3ab18cf06ae9392eab1349675dab8a177f1412da which introduced a regression with the "s" shortcut.
-
This MR relates to #21984 (closed) -
I have read the CONTRIBUTING guide -
I have inserted a CHANGELOG entry if this warrants it -
I have squashed my commits -
I have added tests if necessary