Browse Source

android - only handle back event from source toplevel (#20694)

release/11.3.13
Emmanuel Hansen 8 months ago
committed by Julien Lebosquain
parent
commit
8d39bd054d
No known key found for this signature in database GPG Key ID: 1833CAD10ACC46FD
  1. 3
      src/Avalonia.Controls/TopLevel.cs

3
src/Avalonia.Controls/TopLevel.cs

@ -307,6 +307,9 @@ namespace Avalonia.Controls
_backGestureSubscription = _inputManager?.PreProcess.Subscribe(e =>
{
if (e.Root != this)
return;
bool backRequested = false;
if (e is RawKeyEventArgs rawKeyEventArgs && rawKeyEventArgs.Type == RawKeyEventType.KeyDown)

Loading…
Cancel
Save