Unproper closing browser tab with streamlit

Is here way give user warning if he try to close browser tab with streamlit (by “ctrl+w” or pressing “X”)?

and disconnect connected cameras and other devices by proper way?

with local streamlit

UPD: capture keyboard binding events · Issue #8175 · streamlit/streamlit · GitHub

Hi @alma

This seems to be for the app to capture keyboard binding events and is currently not supported. There are similar post:

Perhaps you may be interested in submitting a feature request Issues · streamlit/streamlit · GitHub

1 Like