Skip to content

Commit

Permalink
- match android to windows behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Sep 6, 2023
1 parent 8203055 commit b83dd72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/Core/src/Handlers/Entry/EntryHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@ void OnEditorAction(object? sender, EditorActionEventArgs e)
if (e.IsCompletedAction(currentInputImeFlag))
{
VirtualView?.Completed();

if (returnType == ReturnType.Done)
handled = true;
}
else if (
currentInputImeFlag == ImeAction.Done
&& e.ActionId == ImeAction.ImeNull
else if (e.ActionId == ImeAction.ImeNull
&& e.Event?.KeyCode == Keycode.Enter
&& e.Event?.Action == KeyEventActions.Down)
{
Expand Down
4 changes: 0 additions & 4 deletions src/Core/src/Handlers/Entry/EntryHandler.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ void OnPlatformKeyUp(object? sender, KeyRoutedEventArgs args)
{
PlatformView?.TryMoveFocus(FocusNavigationDirection.Next);
}
else
{
// TODO: Hide the soft keyboard; this matches the behavior of .NET MAUI on Android/iOS
}

VirtualView?.Completed();
}
Expand Down

0 comments on commit b83dd72

Please sign in to comment.