Open PesBandi opened 1 year ago
Key thing is clicking inside the webview to repro this
I spent some time looking into this. As @crutkas points out, the issue here is that it's not easy for Peek to detect keystrokes made inside WebView2 as it works by hosting Edge running in its own process. This is a well-known issue with WebView2 and there are many issues tracking this on GitHub, such as this one.
Possible fixes I considered were:
I suggest we wait until we can clarify whether # 3 will address things for us before we pursue other fixes.
* I enabled the feature flag and then tried to trap the KeyDown
and PreviewKeyDown
events on WebView2 as well as on the hosting UserControl. I also tried enabling ESC as a keyboard accelerator on WebView2 and trapping ProcessKeyboardAccelerators
. To be sure this wasn't specific to something we're doing in Peek, I created a separate WinUI 3 app outside PowerToys, but I couldn't get this to work there either.
Microsoft PowerToys version
0.73.0
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Peek
Steps to reproduce
.txt
or a.ini
)I couldn't get a screen recording of this, but I hope that you will be able to reproduce this from the provided steps.
✔️ Expected Behavior
The Peek window should close
❌ Actual Behavior
The window doesn't close
Other Software
No response