Repository navigation
Conversation
HoldToReveal (on by default, like Fn-reveal on the Mac) is saved with the other settings, and a settings file without the line loads with it on. The engine gains a revealed state that shows no haze on any monitor while it lasts. A change of reveal state fades over about 90 ms whatever the Fade setting is, so the haze gets out of the way at once and comes back promptly. Turning dimming or the setting off still wins. Nothing sets the revealed state yet; detecting the reveal key comes next.
A low-level keyboard hook, present only while hold-to-reveal is on, feeds a small RevealKeyTracker. Holding Right Ctrl on its own for 250 ms reveals all windows and releasing it brings the haze back. Any other key, or a mouse click or scroll, during the hold cancels the reveal until Right Ctrl is released, so shortcuts like Ctrl+C and Ctrl+click never flash the haze. The hook only watches and never swallows a key. While Right Ctrl is held, a 50 ms timer also checks the real key state, because Windows hides key presses over an admin window from the hook and a missed key-up would otherwise leave everything revealed.
This branch has not been deployed
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.
What
Hold Right Ctrl to reveal all windows on Windows, the counterpart of the Mac's Fn-to-reveal (Windows never sees the Fn key). The haze fades out quickly while the key is held and comes back on release. It only starts after Right Ctrl has been held on its own for about a quarter of a second, and pressing any other key or clicking cancels it until the key is released, so shortcuts like Ctrl+C never flash the haze. On by default, as on the Mac.
One step a day:
Why
Peeking at a background window without switching to it is one of the most useful parts of the Mac app, and Windows users had no way to do it.
How it was tested
windows\test.bat), build has no warningswindows/testsonly covers the update checker (on by default, saved and loaded, old settings files load with it on, no haze while revealed, holding the key does nothing with the setting off). The reveal rules were driven with simulated keys, clicks and timer ticks: a plain hold, auto-repeat, Right Ctrl+C and Ctrl+click, a key pressed mid-reveal, Left Ctrl, normal typing, a missed key-up and a quick tap (10 of 10 pass)