MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Detect Shift key in Ctrl-Shift-O in KeyDown event

Open
#2,245 6 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Mar 8, 2022.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I am trying to circumvent the problem that the WebView2 control doesn’t behave like the WebBrowser control for hot keys/keyboard short cuts/key forwarding that is described in

https://github.com/MicrosoftEdge/WebView2Feedback/issues/468

I’m using the WebView2 keydown event and I can detect Ctrl and Alt but I can’t detect Shift in sequences like Ctrl-Shift-O
(I can detect the Ctrl and the O)

As far as I can tell none of the KeyEventArgs (Modifiers, KeyData or Shift) are set to indicate that Shift has been pressed.

Is there currently anyway of detecting Shift?

AB#38461646

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.