From a4a0f92c4269288ca0385e25848df994e589775a Mon Sep 17 00:00:00 2001 From: Stuyk Date: Fri, 17 May 2024 19:50:18 +0100 Subject: [PATCH] fix: webview focus api (#13) --- docs/changelog.md | 12 ++++++++++++ package.json | 2 +- src/main/client/webview/index.ts | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index d42f8b08a..5704efa87 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,18 @@ order: -1000 # Changelog +## Version 3 + +### Code Changes + +- Added `focus` and `unfocus` support to client-side webviews + +## Version 2 + +### Code Changes + +- Fixed issue with disabling plugins + ## Version 1 ### Code Changes diff --git a/package.json b/package.json index f3df88dfa..5d4f80838 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "stuyk", "type": "module", - "version": "2", + "version": "3", "scripts": { "clean": "shx rm -rf resources/core", "dev": "nodemon -V -x pnpm start", diff --git a/src/main/client/webview/index.ts b/src/main/client/webview/index.ts index c05a6c90d..2f60aef76 100644 --- a/src/main/client/webview/index.ts +++ b/src/main/client/webview/index.ts @@ -187,6 +187,8 @@ export function useWebview(path = 'http://assets/webview/index.html') { hideAllByType, off, on, + focus, + unfocus, showCursor, show, isSpecificPageOpen,