How to disable clear cache shortcut

Hi everyone,

I’ve developed a Streamlit app where users usually copy data from a table cell using ‘Cmd+C’ or ‘Ctrl+C’ shortcut and paste it in a text input widget, in order to have details information about the data point selected.

Everything worked fine on Streamlit v0.61.0.
Now on Streamlit v0.74.0 issue is that when users used ‘Cmd+C’ or ‘Ctrl+C’ shortcut, it triggers the Streamlit clear cache shortcut. It seems that on v0.74.0 Streamlit is not able to see a difference between ‘Cmd+C’ and solo ‘C’ shortcut.

Is there any known solution for that issue ?
If not is there any way to disable the ‘C’ shortcut to clear cache ?

Thanks for your help.

1 Like

Hi @doublemojo, welcome to the Streamlit community!

This is a known regression that was fixed in 0.74.1. If you upgrade your Streamlit version, it should be resolved.

Best,
Randy

Thank you @randyzwitch, upgrading Streamlit version solved the issue.

Hi everyone,

Is there any way to disable the ‘C’ shortcut to clear cache? Would like to disable this for the production version of the app.

Thanks!

1 Like

@randyzwitch is there a way to disable the ‘c’ shortcut to clear cache?

1 Like