Skip to content

Commit

Permalink
fix: webview focus api (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk authored May 17, 2024
1 parent 170d29f commit a4a0f92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/main/client/webview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export function useWebview(path = 'http://assets/webview/index.html') {
hideAllByType,
off,
on,
focus,
unfocus,
showCursor,
show,
isSpecificPageOpen,
Expand Down

0 comments on commit a4a0f92

Please sign in to comment.