zulip / zulip-mobile

Zulip mobile apps for Android and iOS.
https://zulip.com/apps/
Apache License 2.0
1.3k stars 654 forks source link

compose: Hide software keyboard on drag down. #2617

Open jackrzhang opened 6 years ago

jackrzhang commented 6 years ago

When a user begins composing a message, the operating system software keyboard slides up below the compose box.

In most other chat applications, a user can easily hide the keyboard by dragging down directly above the message input box.

For example, in iOS Messages:

hide-software-keyboard-imessage

In the mobile app (running on an iPhone 6), dragging down above the compose box does not hide the keyboard:

hide-software-keyboard-zulip

I'm not sure if this behavior is unique to iOS.

Another nice visual polish in iOS Messages is that messages move along with the sliding animation of the keyboard, whereas the Zulip mobile app is unanimated; the user just sees an instant vertical shift.

borisyankov commented 6 years ago

Nice that you caught that. 👍 This is not available on Android as it has a special button to dismiss the keyboard. On iOS we need to use a ScrollView with keyboardDismissMode="interactive"

jackrzhang commented 6 years ago

@zulipbot add "area: iOS" @zulipbot add "area: layout"