Skip to content

Commit

Permalink
Merge pull request #1183 from kusma/fuse-views-back-button
Browse files Browse the repository at this point in the history
Fuse.Nodes: do not use KeyboardBootstrapper with Fuse.Views
  • Loading branch information
kusma authored May 22, 2018
2 parents d3e9b2c + edb47c2 commit b83894f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
## WrapPanel / WrapLayout
- Fixed `WrapPanel` to update its layout when a layout property changes.

## Fuse.Views
- Fixed a crash when pushing the back-button on Android.


# 1.8

Expand Down
7 changes: 5 additions & 2 deletions Source/Fuse.Nodes/MobileBootstrapping.uno
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ namespace Fuse
Fuse.Platform.Lifecycle.ExitedInteractive += OnExitInteractive;
Fuse.Platform.Lifecycle.Terminating += OnTerminating;

Uno.Platform.EventSources.HardwareKeys.KeyDown += KeyboardBootstrapper.OnKeyPressed;
Uno.Platform.EventSources.HardwareKeys.KeyUp += KeyboardBootstrapper.OnKeyReleased;
if defined(Mobile && !Library)
{
Uno.Platform.EventSources.HardwareKeys.KeyDown += KeyboardBootstrapper.OnKeyPressed;
Uno.Platform.EventSources.HardwareKeys.KeyUp += KeyboardBootstrapper.OnKeyReleased;
}
}

static void OnTerminating(Fuse.Platform.ApplicationState state)
Expand Down

0 comments on commit b83894f

Please sign in to comment.