mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #849] Disabling/ignoring external keyboard shortcuts #618
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#618
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?
Originally created by @alessandrodetta on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/849
Is there a way to disable/ignore external keyboard shortcuts of other programs (i.e keeping only the ones implemented in tview itself) while running so that e.g pasted selected text in Windows Terminal doesn't gets replaced/overriden by Windows Terminal keyboard shortcut ctrl+v itself ? The same happens while running the app in Visual Studio Code terminal, but for the copy operation, which conflicts with ctrl+q.
or is it just normal behavior that the user/developer should take care of?
@rivo commented on GitHub (Jun 18, 2023):
That's not a question for
tviewto answer but rather an issue with the terminal you're using. I don't know if it's possible to block certain keys from being captured by Windows Terminal or VS Code. You'll have to check out the respective documentation.I don't believe any application running inside a terminal can break out of its sandbox and modify external shortcuts, unless that's a specific feature provided by the terminal. This would probably be a security issue. A program running inside VS Code could then keep you from closing VS Code, for example.
I think you can change the Ctrl-Q key in VS Code to something else. But that might not be what you want.