[GH-ISSUE #493] tcell.KeyEnter handles CTRL + SHIFT + V pasting as ENTER #358

Closed
opened 2026-03-04 01:04:18 +03:00 by kerem · 2 comments
Owner

Originally created by @codeliger on GitHub (Aug 31, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/493

	urlField.SetDoneFunc(func(key tcell.Key) {
		switch key {
		case tcell.KeyEnter:
			pages.SwitchToPage("Dashboard")
		}
	})

When I press CTRL+SHIFT+V to paste its returning as an ENTER key

How do i prevent this?

Originally created by @codeliger on GitHub (Aug 31, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/493 ``` urlField.SetDoneFunc(func(key tcell.Key) { switch key { case tcell.KeyEnter: pages.SwitchToPage("Dashboard") } }) ``` When I press CTRL+SHIFT+V to paste its returning as an ENTER key How do i prevent this?
kerem closed this issue 2026-03-04 01:04:18 +03:00
Author
Owner

@rivo commented on GitHub (Oct 18, 2020):

Could it be that you're pasting text that includes the \n character?

<!-- gh-comment-id:711162945 --> @rivo commented on GitHub (Oct 18, 2020): Could it be that you're pasting text that includes the `\n` character?
Author
Owner

@rivo commented on GitHub (Nov 17, 2020):

There was no answer to my question. If you still require information, please open another issue and reference this one.

<!-- gh-comment-id:729138478 --> @rivo commented on GitHub (Nov 17, 2020): There was no answer to my question. If you still require information, please open another issue and reference this one.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#358
No description provided.