mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[PR #1147] [MERGED] handle KeyCtrlJ as newline during paste #1140
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/1147
Author: @laborin
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @rivo
Base:
master← Head:master📝 Commits (1)
2a2df46handle KeyCtrlJ as newline during paste📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
application.go(+2 -0)📄 Description
This PR fixes paste newline handling by mapping tcell.KeyCtrlJ to \n in paste mode.
In some terminals (like Alacritty), pasted multiline text sends line feeds as KeyCtrlJ instead of KeyEnter. Without this mapping, pasted text collapses into one line.
Fixes https://github.com/rivo/tview/issues/1068
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.