Closing the floating webview - keyboard shortcut

Hi,

I have a floating webview for a streaming service and I have set it to have no title bar to allow seamless integration into my working window. However, I don’t know how to close the window without a title bar. I have tried to create a shortcut for this but the only pre-configured options I have is to Hide the Floating Webview instead of close it.

Atm I have set a keyboard shortcut to Restart BTT as this closes the webview but I would like to be able to close it without restarting BTT

My question is - is there a preconfigured customisable way to close the webview or would i have to alter the code of either the existing Show the Floating Webview trigger or create a new trigger with some custom code to do this?

I have seen elsewhere that you can use this code to close the floating webview:

trigger_named({trigger_name: '', closeFloatingWebView:1

I am by no means a coder so if this is the only way to do this, how do I assign this action to a keyboard shortcut and where do I need to input this code?

Thank you

hide and close is essentially the same for floating menus, there are some options on the webview item to disable background mode and caching. I‘ll be on my mac later then I‘ll post a screenshot

1 Like

Thank you!

I tried using the Hide option but although I couldn’t see the webview anymore the sound continued playing in the background. Is this a bug or is it meant to happen?

I also didn't know this but apparently it can be expected behavior of webviews to continue playing media even if they have been closed. I'll fix this / add an option to stop any playback.

2 Likes