Skip to content

Commit

Permalink
fix: keyboard autohide on tap #110
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsicus committed May 3, 2024
1 parent 10f9e0f commit a013a6c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@

All notable changes to this project will be documented in this file.

## [2.0.1] - 2024-05-02
- ### Fixed
- Keyboard autohide on tap #110

## [2.0.0] - 2024-03-26
### Release v2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Get it from [releases page](https://github.com/mopsicus/umi/releases) or add the

See the samples section to get a [demo app](./Samples~/Demo). This demo will show you how to initiate and use UMI in your app, how to create a chat-like app, and how to use a custom font.

_Tested in Unity 2020.3.x, Android and iOS._
_Tested in Unity 2020.3.x, Android (API >= 24) and iOS._

### Initialization

Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

Посмотрите пример использования в [демо](./Samples~/Demo). Этот пример покажет как инициализировать и использовать UMI в вашем приложении, как создать экран по типу мессенджера и как использовать свои шрифты.

_Протестировано в Unity 2020.3.x, Android и iOS._
_Протестировано в Unity 2020.3.x, Android (API >= 24) и iOS._

### Инициализация

Expand Down
2 changes: 1 addition & 1 deletion Runtime/MobileInputField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public enum ReturnKeyType {
/// Remove focus, keyboard when app lose focus
/// </summary>
public override void Hide() {
if (_inputObject != null && _isMobileInputCreated && _inputObject.isFocused) {
if (_inputObject != null && _isMobileInputCreated) {
SetFocus(false);
}
}
Expand Down

0 comments on commit a013a6c

Please sign in to comment.