-
Notifications
You must be signed in to change notification settings - Fork 852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BINDINGS in Link
should be BINDINGS = [Binding("enter", "focused.open_link", "Open link")]
?
#5564
Comments
Link
should be BINDINGS = [Binding("enter", "open_link", "Open link")]
?Link
should be BINDINGS = [Binding("enter", "focused.open_link", "Open link")]
?
Good catch! This looks like a simple fix, but I'm wondering why you changed this to |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
1 similar comment
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
@TomJGooding I‘m writing a chinese guide of Textual. But I am not very familiar with Textual. |
You don't need to add a focused namespace for bindings:
I've never actually used the textual/src/textual/widgets/_button.py Lines 284 to 289 in 699cc86
|
textual/src/textual/widgets/_link.py
Line 23 in 7c25ab5
Maybe
BINDINGS = [Binding("enter", "focused.open_link", "Open link")]
is right.Then I can press
enter
to open link.The text was updated successfully, but these errors were encountered: