~eliasnaur/gio

3 3

Can't dismiss keyboard on mobile

Details
Message ID
<f3d59.4743c0318f.fde9a8804a04f7be012e45ce88389be7@dreacotgroup.com>
DKIM signature
pass
Download raw message
The editor doesn't seem to support disappearing keyboard on mobile, so 
when we focus on the Editor, the keyboard shows and there is no way to 
hide it
Details
Message ID
<3077dfdb-3759-4341-bfa1-1f1f51659161@app.fastmail.com>
In-Reply-To
<f3d59.4743c0318f.fde9a8804a04f7be012e45ce88389be7@dreacotgroup.com> (view parent)
DKIM signature
pass
Download raw message
Typically, mobile keyboards close when you click 'outside', 
but Gio does not handle this automatically. You can create a 
new clip.Rect and listen for clicksqtouches. Then, use 
op.SoftKeyboardOp{Show: false}.Add(...) to close the keyboard.

-- 
  Lucas Rodrigues
  inkeliz@inkeliz.com

On Sun, Jan 14, 2024, at 6:30 AM, kennedy@dreacotgroup.com wrote:
> The editor doesn't seem to support disappearing keyboard on mobile, so 
> when we focus on the Editor, the keyboard shows and there is no way to 
> hide it
Details
Message ID
<CAMAFT9VzJOYfoxYQt-rh8FKdMstY07o-ewSn+YUAYtpD8PV9ng@mail.gmail.com>
In-Reply-To
<f3d59.4743c0318f.fde9a8804a04f7be012e45ce88389be7@dreacotgroup.com> (view parent)
DKIM signature
pass
Download raw message
On Sun, 14 Jan 2024 at 10:34, <kennedy@dreacotgroup.com> wrote:
>
> The editor doesn't seem to support disappearing keyboard on mobile, so
> when we focus on the Editor, the keyboard shows and there is no way to
> hide it

Is this Android or iOS? On Android the back button usually hides the keyboard
if it's shown, but I'm actually not sure what the expected behavior is on iOS.

Elias
Details
Message ID
<CAFcc3FTLhkyaZp=i0mNzEaB1a=a_yht-im2o23AdLg4DvAyjVg@mail.gmail.com>
In-Reply-To
<f3d59.4743c0318f.fde9a8804a04f7be012e45ce88389be7@dreacotgroup.com> (view parent)
DKIM signature
pass
Download raw message
> The editor doesn't seem to support disappearing keyboard on mobile, so
> when we focus on the Editor, the keyboard shows and there is no way to
> hide it

Hmm, doesn't the OS provide a means to hide the keyboard? I guess I
can only speak for my version of android, but I have a button for it.
If not, you could modify the application to dismiss the keyboard when
the editor loses focus.
Reply to thread Export thread (mbox)