mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
fix(ioscompanion): replace field content on input so blackout-skipped erase cannot accumulate text
This commit is contained in:
1 parent
d8b6dcaf98
commit
6cc84fcafe
2 files changed
+34
-5
No files matched your search
@@ -831,7 +831,14 @@ func waitForListener(ctx context.Context, address string) error {
|
||||
}
|
||||
}
|
||||
|
||||
// ReplacesTextOnInput reports that InputText replaces the field's content, so
|
||||
// the runner skips its pre-erase. The driver clears the field inside InputText,
|
||||
// which is robust even when a collapsed accessibility bridge would make the
|
||||
// runner read the field length as zero and wrongly skip erasing.
|
||||
func (d *Driver) ReplacesTextOnInput() bool { return true }
|
||||
|
||||
var (
|
||||
_ driver.DeviceDriver = (*Driver)(nil)
|
||||
_ driver.ForegroundChecker = (*Driver)(nil)
|
||||
_ driver.TextReplacer = (*Driver)(nil)
|
||||
)
|
||||
Reference in new issue
Block a user