pywebview icon indicating copy to clipboard operation
pywebview copied to clipboard

Shortcuts do not work in Web Inspector

Open AlecHaring opened this issue 1 year ago • 2 comments

Specification

  • pywebview version: 0eef180d6c9e76ef01729a082ee02ea4026a795e
  • operating system: macOS 14.2.1
  • web renderer: WebKit

Description

Shortcuts such as CMD + C, CMD + V, CMD + W, etc., do not work in the WebKit Inspector.

I suspect it has something to do with the fact that shortcuts like those are typically handled by the menu shortcuts, but since menu shortcuts are not implemented yet, the logic is handled inside WebKitHost.keyDown_. But keyDown events from the Web Inspector don't trigger that method.

Practicalities

  • YES I am willing to work on this issue myself.

AlecHaring avatar Jan 10 '24 09:01 AlecHaring

Sorry, I have no idea about this issue, but my experience with WKWebView that you have to implement every "non-standard" feature by hand. This would probably require to have a separate keyDown_ implementation for the web inspector.

r0x0r avatar Jan 22 '24 11:01 r0x0r

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 22 '24 02:02 github-actions[bot]

The message to post on the issue when closing it. If none provided, will not comment when closing an issue.

github-actions[bot] avatar Feb 28 '24 02:02 github-actions[bot]