Dynamic Bindings #4745
-
Unless I missed this in the docs, there doesnt seem to be a way to dynamically bind/unbind keys. My usecase is for different "modes" of the same view, e.g read only vs editable. Once the view is made editable, I'd like to expose addtl bindings and then conversely remove them when made read-only I am able to manually manipulate |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
We found the following entry in the FAQ which you may find helpful: Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review. This is an automated reply, generated by FAQtory |
Beta Was this translation helpful? Give feedback.
-
You can implement the |
Beta Was this translation helpful? Give feedback.
-
Thanks! I had been searching the docs for bindings rather than actions |
Beta Was this translation helpful? Give feedback.
You can implement the
check_action
method - see the docs for details: https://textual.textualize.io/guide/actions#dynamic-actions