about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-11-26 09:52:58 -0700
committerMichael Howell <michael@notriddle.com>2022-11-26 10:19:22 -0700
commit74de78a414043202ed70c239b2aca74dceb4c1a8 (patch)
treeb1ba3cb1418e87942da3bd8cd658c17c9c8a9692 /compiler/rustc_codegen_llvm/src
parent579c993b35a02dc439b74bba18b0a14f77911c95 (diff)
downloadrust-74de78a414043202ed70c239b2aca74dceb4c1a8.tar.gz
rust-74de78a414043202ed70c239b2aca74dceb4c1a8.zip
rustdoc: improve popover focus handling JS
This commit fixes a few inconsistencies and erratic behavior from the
notable traits, settings, and sidebar popups:

* It makes it so that pressing Escape closes the mobile sidebar.
  This is a bit difficult to do on iPhone, but on other setups like
  desktop tiling window managers, it's easy and makes sense.
* It makes sure that pressing escape while a notable trait popover is
  open focuses the popover's toggle button, instead of leaving nothing
  focused, since that makes more sense with keyboard navigation. Clicking
  the settings, help, or sidebar buttons, however, will not focus the
  notable trait popover toggle button.
* It ensures that notable trait and settings popovers are exclusive
  with the mobile sidebar. Nothing should ever overlap a popover, and
  there should never be more than one popover open at once.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions