Automattic / stories-android

Loop concept app - WP Stories library
GNU General Public License v2.0
20 stars 6 forks source link

Enable tapping outside the text editing area to exit text editing mode #168

Open megsfulton opened 5 years ago

megsfulton commented 5 years ago

Observed users testing tapping outside of the active text area to dismiss the keyboard and text editing mode. This is expected behavior due to support in other apps that allow text editing over photos.

aforcier commented 4 years ago

One other report of this via @osullivanchris.

Copying over some notes for a discussion elsewhere:

@mzorz

When the editor comes up, the full screen is covered by an EditText component so you can’t really tap “outside” of it – that said, we could definitely experiment and make it occupy only the center of the screen while showing a full screen overlay behind that just listens to taps, and then tapping on any part of that behind overlay we could track it down and make the whole transparent dialog disappear. Just a thought though, this may pose some unseen hurdles.

@aforcier

We’d have to try it – I see some things being fiddly, like text alignment will have to shift the EditText as well as the text in it, and the way the color picker bottom sheet interacts with the EditText now will have to be adjusted.