mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[PR #358] [CLOSED] Added CustomKeys support in TextView #924
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#924
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/358
Author: @aravindgopall
Created: 10/30/2019
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
a7ffdceAdded CustomKeys support in TextView📊 Changes
3 files changed (+27 additions, -2 deletions)
View changed files
📝
demos/textview/main.go(+5 -1)📝
textview.go(+13 -1)📝
util.go(+9 -0)📄 Description
In Current implementation, InputHandler function it is hardcoded when to call function
donewhich is defined by user. In new implementation added a key customKeys toTextView which can be set by passing
[]tcell.Keyand handle them insideuser defined function
done.Later we can remove the other three functions and make it completely user defined keys.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.