开发者

How do I specify composite characters like CTRL + E?

开发者 https://www.devze.com 2023-01-13 16:56 出处:网络
I am echoeing the contents of a text file into a window. I can specify decipher \\b as {BS}, \\t as {TAB}, \\n as {ENTER} etc.

I am echoeing the contents of a text file into a window. I can specify decipher \b as {BS}, \t as {TAB}, \n as {ENTER} etc.

  1. Where do I find a complete list of t开发者_如何学JAVAhe C# escape character and its associated typewriter string i.e. \b is the C# escape sequence and {BS} is the typewriter string?
  2. I need a list that includes composite typewriter strings like Shift+F1 etc.

Thanks.


MSDN notes the following:

To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes.

Key      Code  
SHIFT    +  
CTRL     ^  
ALT      %  
0

精彩评论

暂无评论...
验证码 换一张
取 消