From b1469d7ed78432402faa7213b33cd898f98282b7 Mon Sep 17 00:00:00 2001 From: Juanjo Tugores Date: Thu, 20 Jun 2024 10:51:50 -0700 Subject: [PATCH] Fix focus management for text fields (flutter/engine#51009) Fix focus management for text fields This PR: 1. Refactors the DOM `focus` function to take [options][1] 2. Removes the timers sorrounding the `activeDomElement.focus()` so that the input elements get focused as immediate as possible. 3. Prevents the default on pointerdown in a Flutter View and schedules a `requestViewFocusChange` to claim focus in that view after some time. This gives `2` the opportunity to focus the right `` or `