streamlit-shortcuts
Keyboard shortcuts for Streamlit — now partly native
·
Add keyboard shortcuts to any Streamlit widget. Drop-in replacement for st.button:
Python
if shortcut_button("Save", "ctrl+s", type="primary"):
save()Streamlit 1.52+ added native st.button(shortcut=...) inspired by this package. The package remains useful for multiple shortcuts per element and shortcuts on non-button widgets — features not yet in native Streamlit.
v1.0 was a complete rewrite: 277 lines down to 91, 15 config files deleted, 5 linters replaced with ruff.