about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-27 16:03:09 +0100
committerGitHub <noreply@github.com>2022-11-27 16:03:09 +0100
commit55cf566f041e110d5cfe39b49391dcb33f8da37b (patch)
treef5d1723bfbb8ea875a13541b5d58b954ba4c445a /compiler/rustc_codegen_llvm/src/errors.rs
parente3165a3808fe096cd0d8f9be0937fdcaa4c80383 (diff)
parentc26074afde3dbe5873874647709ccd4ce4b64813 (diff)
downloadrust-55cf566f041e110d5cfe39b49391dcb33f8da37b.tar.gz
rust-55cf566f041e110d5cfe39b49391dcb33f8da37b.zip
Rollup merge of #104946 - notriddle:notriddle/popover-menu-focus, r=GuillaumeGomez
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/errors.rs')
0 files changed, 0 insertions, 0 deletions