question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle window buttons, esp. close.

See original GitHub issue

It would be nice if you could intercept and handle the window buttons so you can do things like confirm, show save progress while closing, or save window position - this might be something I’m missing (something with onunload in the view?) in which case this might just be a doc bug.

If this isn’t currently possible, the simplest option might be to forward them into the JS like host calls, otherwise it looks like it might be a API breaking change in WebViewBuilder to add more fields.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
simonbuchancommented, Jul 10, 2022

We switched to Tauri.

0reactions
Blakeinsteincommented, Jul 10, 2022

How difficult was that switch? Would you recommend that? @simonbuchan

I know you didn’t ask me. But I would still like to pitch in. Even I switched to Tauri, for what I was using this project for. And for me it was relatively straightforward. Infact I was able to additionally simplify my frontend pipeline, which I had to add inorder to fit in with the restrictions here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML Button Close Window - Stack Overflow
I have an html button that I want to close the current window when clicked. I thought I could just set the onclick...
Read more >
Spare Parts Used FR56713502 Push-Button Closing Doors ...
Find many great new & used options and get the best deals for Spare Parts Used FR56713502 Push-Button Closing Doors & Button Esp...
Read more >
Troubleshoot the Enrollment Status Page (ESP) - Intune
General troubleshooting guide for the Enrollment Status Page (ESP) for Windows Autopilot or OOBE for Azure AD Join.
Read more >
ESP8266 NodeMCU Door Status Monitor with Email ...
In this project, you're going to monitor the status of a door using an ESP8266 NodeMCU board and a magnetic reed switch. You'll...
Read more >
Close up inside car, button to disable traction control ESP
Download this stock image: Close up inside car, button to disable traction control ESP - 2BFH53K from Alamy's library of millions of high...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found