Skip to content

Commit 2c9ad63

Browse files
fix(link): fix binding to open link
Fixes #5564 Co-authored-by: PythonPan <2292551082@qq.com>
1 parent 7c25ab5 commit 2c9ad63

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
### Fixed
11+
12+
- Fixed `Link` binding to open the link https://github.com/Textualize/textual/issues/5564
13+
814
## [2.1.0] - 2025-02-19
915

1016
### Fixed

src/textual/widgets/_link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Link(Static, can_focus=True):
2020
}
2121
"""
2222

23-
BINDINGS = [Binding("enter", "select", "Open link")]
23+
BINDINGS = [Binding("enter", "open_link", "Open link")]
2424
"""
2525
| Key(s) | Description |
2626
| :- | :- |

0 commit comments

Comments
 (0)