[GH-ISSUE #18] Is CTRL+Number supported as a "hot-key"? #10

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

Originally created by @triddell on GitHub (Jan 12, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/18

I'm starting to build something similar to your presentation example. On the bottom menu though I'd like to change from screen to screen using CTRL-1, CTRL-2, etc

You are using "tcell.KeyCtrlN" for CTRL-N for example. Do you know if tcell supports something like CTRL-1, CTRL-2, etc? I couldn't find this myself but may it supports combinations in other ways too (hopefully).

Originally created by @triddell on GitHub (Jan 12, 2018). Original GitHub issue: https://github.com/rivo/tview/issues/18 I'm starting to build something similar to your presentation example. On the bottom menu though I'd like to change from screen to screen using CTRL-1, CTRL-2, etc You are using "tcell.KeyCtrlN" for CTRL-N for example. Do you know if tcell supports something like CTRL-1, CTRL-2, etc? I couldn't find this myself but may it supports combinations in other ways too (hopefully).
kerem closed this issue 2026-03-04 01:01:06 +03:00
Author
Owner

@rivo commented on GitHub (Jan 13, 2018):

I'm using tcell and at the moment, it doesn't look like you can have something like Ctrl-1 (see here). I'm not sure why, maybe it's something that terminals don't support?

You may want to ask the tcell author about this. He has a much better idea of what's possible in this area than I do.

<!-- gh-comment-id:357424663 --> @rivo commented on GitHub (Jan 13, 2018): I'm using `tcell` and at the moment, it doesn't look like you can have something like `Ctrl-1` (see [here](https://godoc.org/github.com/gdamore/tcell#Key)). I'm not sure why, maybe it's something that terminals don't support? You may want to ask the [tcell](https://github.com/gdamore/tcell) author about this. He has a much better idea of what's possible in this area than I do.
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#10
No description provided.