-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem/Bug]: WinUI3 AreBrowserAcceleratorKeysEnabled=false
has no effect
#4241
Comments
I can confirm this issue. The same problem with disabling drag & drop. |
@gameDNAstudio Hi, we're taking a quick look at this issue, could you provide some more information on the drag and drop scenario? Which API did you use? |
@tofuandeve sometimes when I click too fast on the WebView it starts drag & drop action of nothing (or text probably). Then it leads very often to crash. I attached screenshot with showing the icon for this action. |
@gameDNAstudio got it! And you were able to disable this before or was it always disabled by default and recently it was enabled after updating to later WebView2 runtime? And this dragging action happens when you click within the webview? |
@tofuandeve I didn't use WebView2 before so I don't know how it was before. Yes, I click within the WebView. |
@gameDNAstudio after a quick look, the dragging issue seems to be on the WinUI side, we'll get the right folks to take a look at it. For now we'll continue to look at the issue with AreBrowserAcceleratorKeysEnabled setting. Thanks. |
This issue is tracked here #4278 (comment) |
Closed issue as duplicate of #4278 |
According to #4278 this is supposedly fixed in Canary 122 but I have now the beta 122.0.2365 for Edge and the |
What happened?
Specifically in WinUI3, setting
AreBrowserAcceleratorKeysEnabled = false
has no effect. Keys such as F5 continue working no matter what, even though they should stop working when the value is set tofalse
.The same functionality works as expected in WPF.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
120.0.2210.61
SDK Version
WinAppSDK 1.4.230913002
Framework
WinUI3/WinAppSDK
Operating System
Windows 11
OS Version
22H2 22621.2861
Repro steps
<WebView2 x:Name="WebView2Control" Source="https://www.bing.com" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
EXPECTED: These keys should be ignored
ACTUAL: The browser responds to these and refreshes/prints/etc.
NOTE: The same code in a WPF WebView2 app works as expected.
Repros in Edge Browser
Not Applicable
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: