Skip to content

Defining a Quit Key #2628

Closed Answered by jdhitsolutions
jdhitsolutions asked this question in Q&A
Discussion options

You must be logged in to vote

I finally realized the | character was representing a -BOR operation. This all makes more sense to me now.

$MenuItem0.ShortCut = [int][Terminal.Gui.Key]"CtrlMask" -bor [int][char]"X"

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BDisp
Comment options

BDisp Sep 25, 2023
Collaborator

Answer selected by jdhitsolutions
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants