tauri-apps/tauri

[feat] Webview Window Focusable Property

Opened this issue · 0 comments

Describe the problem

There isn't the ability to create a window that is not focusable, like a onscreen keyboard. Electron has a BaseWindow property that can be set of focusable which then causes the window never to gain focus.

Describe the solution you'd like

This would be a property that is set on the WebviewWindow which will define if the window can take focus or not. The window should still be interactable with the user.

Alternatives considered

I have attempted to create the window and change the window style with WinApi but have not been successful in changing the styles. As I don't always know where the focus has come from I cannot always just give it back with a event when the focus is gained in the window.

Additional context

No response