r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.64k stars 539 forks source link

Question - is it possible to catch keystroke events? #610

Closed 99hats closed 3 years ago

99hats commented 3 years ago

Specification

Description

It would be nice to capture things like the alt-lftarrow to navigate backwards or escape to quit.

Practicalities

r0x0r commented 3 years ago

Could not you do it via Javascript?

99hats commented 3 years ago

Mostly, except when the user is sent off to another website there's no back button. IFrames could be used in this case, but I've found iFrames hard to work with you never know how the links may be targetted.

This is a great platform. You've done a wonderful job with it. I like it so much better than Electron.

I can't believe how long it took me to stumble upon though.

github-actions[bot] commented 3 years ago

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] commented 3 years ago

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