Skip to content

Conversation

@swift-kim
Copy link
Member

This PR contains the following various fixes.

  • Fix a typo at line 353 of text_input_channel.cc (the else statement should come after #endif).
  • Let TextInputChannel::SendKey return false by default and check if the given key is actually handled by HandleKey. This fixes a problem of back button not responding when a TextField has a focus and a software keyboard is closed.
  • Change the return type of PlatformViewChannel::SendKey to bool to allow platform views to intercept key events without propagating to other handlers.

Note: TextInputChannel::HandleKey handles only key down events and thus some key up events (Left, Home, and etc.) are still redundantly propagated to PlatformViewChannel and KeyEventChannel.

@swift-kim swift-kim requested a review from bbrto21 June 3, 2022 04:52
@swift-kim swift-kim merged commit 7b0c7a1 into flutter-tizen:flutter-3.0.0-tizen Jun 7, 2022
swift-kim added a commit that referenced this pull request Aug 5, 2022
swift-kim added a commit that referenced this pull request Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants