[PR #358] [CLOSED] Added CustomKeys support in TextView #924

Closed
opened 2026-03-04 01:08:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/358
Author: @aravindgopall
Created: 10/30/2019
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • a7ffdce Added 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 done which is defined by user. In new implementation added a key customKeys to
TextView which can be set by passing []tcell.Key and handle them inside
user 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.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/358 **Author:** [@aravindgopall](https://github.com/aravindgopall) **Created:** 10/30/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`a7ffdce`](https://github.com/rivo/tview/commit/a7ffdce4b2663946ddb6ca9b3c820f98727e3c96) Added CustomKeys support in TextView ### 📊 Changes **3 files changed** (+27 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `demos/textview/main.go` (+5 -1) 📝 `textview.go` (+13 -1) 📝 `util.go` (+9 -0) </details> ### 📄 Description In Current implementation, InputHandler function it is hardcoded when to call function `done` which is defined by user. In new implementation added a key customKeys to TextView which can be set by passing `[]tcell.Key` and handle them inside user defined function `done`. Later we can remove the other three functions and make it completely user defined keys. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:08:35 +03:00
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#924
No description provided.