Revert "Mac: windows always display as key if a child is key"
This reverts commit e8438fe0. Reason for revert: https://crbug.com/1050430 Original change's description: > Mac: windows always display as key if a child is key > > On other platforms, user expectation is that a parent window will display > as inactive when a modal is showing. This isn't the case on Mac. > > Additionally, the code that passes key commands up to the parent window > uses this status to determine whether to pass keys from child windows up. > > This change (hopefully) shows a window as active iff a child is active. > It plays well with the current code that handles this for bubbles because > PaintAsActive is now reference counted. > > Still outstanding: making a non-key child window key *does* cause the > browser frame to be drawn as key and *does* handle hotkeys correctly, > but does *not* fix the traffic lights until the browser window has been > interacted with. > > Bug: 1046540 > Change-Id: I1629e66457c42b268c2283a8dbeb6823c66b1111 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033432 > Commit-Queue: Leonard Grey <lgrey@chromium.org> > Reviewed-by: ccameron <ccameron@chromium.org> > Cr-Commit-Position: refs/heads/master@{#739444} TBR=ccameron@chromium.org,lgrey@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 1046540 Change-Id: Ic25e1562df10809be9cdc9cd886fbf794b96b3c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2047085Reviewed-by:Leonard Grey <lgrey@chromium.org> Commit-Queue: Leonard Grey <lgrey@chromium.org> Cr-Commit-Position: refs/heads/master@{#739878}
Showing
Please register or sign in to comment