Subj : Re: CTRL key To : borland.public.cpp.borlandcpp From : maeder Date : Tue Jul 20 2004 09:55 am Bob Gonder writes: > Didn't find any VK_ values for control codes, but they are: > Letter & 0x1f > so > Ctrl-A == 'A' & 0x1f == 1 > Ctrl-C == 'C' & 0x1f == 3 > Ctrl-J == 'J' & 0x1f == 9 == '\t' > Ctrl-K == 'K' & 0x1f == 10 == '\n' This looks strange (I don't write "wrong", but you might review it): 'i' is the 9th letter of the alphabet, and 'j' the 10th. > Ctrl-M == 'M' & 0x1f == 13 == '\r' And 'm' the 13th, so we are back in sync here. .