Skip to content

android: keyboard/text editor focus issue #1951

Description

@ItsKaa

Describe the bug

On Android/Mobile, the main text editor ('Send a message...' box) seems to remain the focused area when opening dialog boxes such as sticker/emoji/gif or pages such as settings, you have to first manually close the keyboard and then focus something else like the timeline (which isn't always easy in a full timeline either) in order to correct the issue. This is particularly annoying when chatting and wanting to include an emoji/sticker.

android-keyboard-textbox-problem.mp4

Note that in this video you can't see my taps, I did first try to tap on the sticker/emoji search and room name text boxes but it does not work.

Reproduction

  1. Open a room
  2. Tap the "Send a message" text editor and optionally write some text
  3. Tap on the emoji/stickers/gif button
  4. Try typing to search: does not get registered to the emoji/sticker/gif search
  5. Try to tap on the search box: focus does not shift

Expected behavior

When opening dialogue boxes, the text editor should automatically unfocus from the main chat box.
Ideally for sticker/emoji/gif, if the keyboard was already open it should automatically focus on the "Search" box so that typing will immediately cause it to search, afterward the focus should shift back to the main text editor.

Platform and versions

1. OS: Android 17
2. Sable version: v1.21.0 (7675aa1)
3. Matrix homeserver: selfhosted with Synapse

Issue verified on three different devices with two different homeservers.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions