We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f20732f commit 6c46ba2Copy full SHA for 6c46ba2
1 file changed
src/actions/windows.ts
@@ -591,10 +591,9 @@ export class WindowsActionHandler implements ActionHandler {
591
}
592
593
// Fallback: keyboard simulation via Unicode SendInput.
594
- const focusResult = await this._uiaAction(hwnd, nodeIndex, "focus", {});
595
- if (!focusResult.success) {
596
- return { success: false, message: "", error: `Failed to focus element for typing: ${focusResult.error}` };
597
- }
+ // Focus may fail on CEF/Chromium elements but the element might already be focused
+ // from a prior click, so we continue regardless.
+ await this._uiaAction(hwnd, nodeIndex, "focus", {});
598
599
// Select all existing text
600
await this.press("ctrl+a");
0 commit comments