Hey Fellas,
is there a way to set keybindings (similar to R for rerun) on buttons?
st.button(“click”, keybinding=“enter”)
Best regards
Chris
Hey Fellas,
is there a way to set keybindings (similar to R for rerun) on buttons?
st.button(“click”, keybinding=“enter”)
Best regards
Chris
There isn’t, but I feel like I’ve heard this request before. There might be some discussion on the GitHub issues about this, or if not, creating an issue is a good idea.
Yeah I think I saw something related too on GH
The “Using Component to bind keyboard shortcut” … shouldn’t totally work, as the shortcut would be limited to the zone of the iframe container for the component.
But actually I’m not sure, maybe we could escape the iframe sandbox to capture keyboard events on the whole app instead of only the component iframe.
(still, st.button(“click”, keybinding=“enter”)
wouldn’t be easily possible, you should def. add that to the GH feature request )
Something to test one day
Fanilo
Great guys, thanks for your replies .
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.