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

This commit is contained in:
donteatfriedrice
2025-01-06 04:09:01 +00:00
parent fc863e484c
commit 09c7a597be
4 changed files with 38 additions and 0 deletions

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(