android - only handle back event from source toplevel (#20694)
This commit is contained in:
@@ -290,6 +290,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)
|
||||
|
||||
Reference in New Issue
Block a user