HomePhabricator
Diffusion Comm 9bac685f484d

[6/n] Native Typeahead - Refactor focusAndUpdateText and add…

Description

[6/n] Native Typeahead - Refactor focusAndUpdateText and add focusAndUpdateTextAndSelection

Summary:
Preparing for native typeahead.
Refactored utility funtion used for focusing text input and introduced new function that will be used in typeahead. Common part was extrated to focusAndHandleButtons.

Test Plan:
Checked if app builds.
Tested if focusing on reply still works correctly.
focusAndUpdateTextAndSelection tested in future diffs when it's actually used.

Reviewers: inka, ginsu, kamil, michal, tomek, ashoat

Reviewed By: tomek, ashoat

Subscribers: ashoat, tomek, atul, inka, ginsu, kamil, michal

Differential Revision: https://phab.comm.dev/D6368

Details

Provenance
przemekAuthored on Jan 13 2023, 6:24 AM
ashoatCommitted on Feb 7 2023, 2:36 PM
Reviewer
tomek
Differential Revision
D6368: [6/n] Native Typeahead - Refactor focusAndUpdateText and add focusAndUpdateTextAndSelection
Parents
rCOMMfbbb0b33690b: [5/n] Native Typeahead - Add selection state to chat input bar
Branches
Unknown
Tags
Unknown