tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[feat] Webview Window Focusable Property

Open Ryan-Pell opened this issue 1 year ago • 3 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

Ryan-Pell avatar Sep 25 '24 14:09 Ryan-Pell

Are there any solutions or alternatives for this already?

doceazedo avatar Jan 27 '25 13:01 doceazedo

i need this feat

rmstsd avatar May 12 '25 01:05 rmstsd

On Windows, this can be achieved by setting the window extended style with the flag WS_EX_NOACTIVATE. I don´t know how to achieve this on Mac and Linux though.

tqphan avatar May 27 '25 00:05 tqphan