Repository navigation
Conversation
A panel that takes the keyboard without bringing its app in front (the Launchpad's, Spotlight's, Bob's to translate a screenshot) left BaoCode the active app, its traffic lights lit, with no window key once it went: keys typed went nowhere till a click on the window, and the modifier whose key up went to the panel stayed held for the app. The window is now made key again once the other app's windows that were not over it as it was last key are gone, and the held modifiers are checked against the system's as a window is key again. Co-Authored-By: BaoCode <noreply@baocode.dev>
Collaborator
Author
|
Closing: the keyboard not coming back after Bob's screenshot translation happens in Chrome too (Window Server windows left after Bob's capture), so it is not BaoCode's to work around. |
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.
A panel that takes the keyboard without bringing its app in front (the Launchpad's, Spotlight's, Bob's screenshot translation) left BaoCode the active app, traffic lights lit, with no window key once it went: keys typed went nowhere till a click on the window. The event log showed
view 0 unfocusedwith nolifecycle inactive, and a Right Control held for the app, not the system.KeyReturn(macos/Runner/FocusWatch.swift): with the app active and no window key after a BaoWindow resigned it, the other apps' windows over it are looked at every 0.25 s; once one not there as it was last key has shown and then been gone two looks in a row, the window is made key again ([focus] key again after … s). Gives up after 10 minutes.HeldKeys(lib/platform/held_keys.dart): the held modifiers are checked against the system's as a window is key again, not only on a click or on resume.Tested:
flutter test test/platform/held_keys_test.dart,flutter build macos --debug. Not yet tried against the Launchpad → Bob flow by hand.🤖 Generated with BaoCode