MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: WPF WebView2 does not accept Delete key when CommandBinding is in place
@tochukwuIbeEkeocha is already working on this.
Since May 24, 2024.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
If you have a CommandBinding in place for ApplicationCommands.Delete, and a webview2, the webview2 does not process any Delete keyboard keys, while all other UI elements do. This is keeping us from migrating to webview2. (EO Browser does not exhibit this behavior)
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
1.0.2478.35
SDK Version
1.0.2478.35
Framework
WPF
Operating System
Windows 11
OS Version
22621.3447
Repro steps
- From a blank wpf project, add a commandbinding
<CommandBinding Command="ApplicationCommands.Delete" Executed="CommandBinding_OnExecuted" CanExecute="CommandBinding_OnCanExecute"></CommandBinding>- Add a webview2 with source of Google
<wpf:WebView2 Source="https://www.google.com"></wpf:WebView2>- Add a textbox
<TextBox Width="200"></TextBox>- run the program
- Type into google search
- select all text
- hit the delete key
- Expected: Text deletes
- Actual: nothing happens
- Go to the textbox
- type text into the text box
- select all
- Hit the delete key
- Actual: text is deleted
GithubWebView2Issue.txt
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.