[GH-ISSUE #577] tcell.KeyBackspac not hit in SetInputCapture #421

Closed
opened 2026-03-04 01:04:50 +03:00 by kerem · 1 comment
Owner

Originally created by @JCzz on GitHub (Mar 11, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/577

I am on macos 11.2.2

"tcell.KeyBackspac" is not hit?

inputForm := tview.NewForm()
inputForm.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
		if event.Key() == tcell.KeyBackspace {
			// Not hit?
			return nil
		}

Keyboard <Shift+Tab> hits tcell.KeyTab but not tcell.KeyBacktab

Originally created by @JCzz on GitHub (Mar 11, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/577 I am on macos 11.2.2 "tcell.KeyBackspac" is not hit? ``` inputForm := tview.NewForm() inputForm.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { if event.Key() == tcell.KeyBackspace { // Not hit? return nil } ``` Keyboard <Shift+Tab> hits `tcell.KeyTab` but not `tcell.KeyBacktab`
kerem closed this issue 2026-03-04 01:04:51 +03:00
Author
Owner

@JCzz commented on GitHub (Mar 11, 2021):

I found that it is only in the goland debugger console, it works in the compiled binary.

It must be within golang, therefore I will close this again.

<!-- gh-comment-id:796736027 --> @JCzz commented on GitHub (Mar 11, 2021): I found that it is only in the goland debugger console, it works in the compiled binary. It must be within golang, therefore I will close this again.
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#421
No description provided.