Repository navigation
fix(little-window): close the focused panel with Command-W - #532
Merged
Merged
Conversation
…load to the panel Excluding Little windows from the browser window's key monitor left Cmd-T, Cmd-1..9, Ctrl-Tab and extension commands dead there, and let a page swallow Cmd-W. The monitor sees the panel's keys again and sends the shortcuts the panel answers itself (close tab, close window, open location, reload, copy URL) to it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tab.closefor the browser window behind it.LittleWindowTests: the monitor leaves the key to the panel, the panel's existing close action closes it, and the tab in the browser window behind stays open.Fixes #531
Why and measured impact
LittlePaneltype check in the existing key-event monitor; there is no idle work and no new timer or observer.make ui-lint ui-test site-check site-test docs-check docs-test hooks-test bootstrap-test perf-summary-test check-summary-test agent-eval-test ext-bridge-test swiftlint release-status ui-build ext-bridge-build test-buildpassed locally. Measured totals in that run include 688 UI tests, 587 extension bridge tests, SwiftLint with 0 violations in 335 files, and a cleanbuild-for-testingcompile. Swift runtime tests are left to CI because they open windows and take keyboard focus.Test plan
make test-buildpass locally