fix(core): should focus when clicking sidebar button (#9339)

This commit is contained in:
donteatfriedrice committed 2025-01-06 04:09:01 +00:00
1 parent fc863e484c
commit 09c7a597be
4 files changed
+38

No files matched your search

+6
View File
@@ -64,6 +64,12 @@ export async function pasteByKeyboard(page: Page) {
await keyUpCtrlOrMeta(page);
}
export async function selectAllByKeyboard(page: Page) {
await keyDownCtrlOrMeta(page);
await page.keyboard.press('a', { delay: 50 });
await keyUpCtrlOrMeta(page);
}
export async function writeTextToClipboard(page: Page, text: string) {
// paste the url
await page.evaluate(