Skip to content

Commit

Permalink
fix(link): fix binding to open link
Browse files Browse the repository at this point in the history
Fixes #5564

Co-authored-by: PythonPan <[email protected]>
  • Loading branch information
TomJGooding and python-and-novella committed Feb 20, 2025
1 parent 7c25ab5 commit 2c9ad63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Fixed

- Fixed `Link` binding to open the link https://github.com/Textualize/textual/issues/5564

## [2.1.0] - 2025-02-19

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Link(Static, can_focus=True):
}
"""

BINDINGS = [Binding("enter", "select", "Open link")]
BINDINGS = [Binding("enter", "open_link", "Open link")]
"""
| Key(s) | Description |
| :- | :- |
Expand Down

0 comments on commit 2c9ad63

Please sign in to comment.