web: Add EventLoop::spawn (#2208)
* web: Add `EventLoop::spawn` This is the same as `EventLoop::run`, but doesn't throw an exception in order to return `!`. I decided to name it `spawn` rather than `run_web` because I think that's more descriptive, but I'm happy to change it to `run_web`. Resolves #1714 * Update src/platform/web.rs Co-authored-by: Markus Røyset <maroider@protonmail.com> * Fix outdated names Co-authored-by: Markus Røyset <maroider@protonmail.com>
This commit is contained in:
parent
cdd9b1e1eb
commit
aa8f8db305
3 changed files with 56 additions and 9 deletions
|
|
@ -8,6 +8,7 @@ And please only add new entries to the top of this list, right below the `# Unre
|
|||
|
||||
# Unreleased
|
||||
|
||||
- Added `EventLoopExtWebSys` with a `spawn` method to start the event loop without throwing an exception.
|
||||
- Added `WindowEvent::Occluded(bool)`, currently implemented on macOS and X11.
|
||||
- On X11, fix events for caps lock key not being sent
|
||||
- Build docs on `docs.rs` for iOS and Android as well.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue