test(config_flow,media_player,remote): digit-delay/send-enter options (store + window/error validation), IME-first text entry with ADB fallback tier, icon column parse/prefill/store (P5-2)
This commit is contained in:
1 parent
3d026ae60e
commit
a3b397920e
7 files changed
+320
-18
No files matched your search
@@ -174,3 +174,17 @@ class NvidiaShieldRemoteEntity(RemoteEntity):
|
||||
await manager.send_protocol_key(key_name, direction)
|
||||
if delay_secs > 0:
|
||||
await asyncio.sleep(delay_secs)
|
||||
|
||||
async def async_send_text(self, text: str) -> bool:
|
||||
"""Text entry (P5-2) via the protocol send_text (remote surface).
|
||||
|
||||
Falls back to ADB `input text` only when the protocol transport is
|
||||
down or the send failed (the Shield may swallow IME text while its
|
||||
on-screen keyboard is up, RESEARCH_IDEAS §2).
|
||||
"""
|
||||
manager = self._manager_of()
|
||||
if manager is None or not text:
|
||||
return False
|
||||
if await manager.send_text_ime(text):
|
||||
return True
|
||||
return await manager.send_adb_input_text(text)
|
||||
Reference in new issue
Block a user