send upper char if caps lock

git-svn-id: svn://qnap.local/TwoTerm/trunk@1992 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2011-01-16 23:03:45 +00:00
parent 1a9de35ad5
commit 5252d7c61d

View File

@ -268,6 +268,10 @@ enum {
if (uc <= 0x7f)
{
char c = uc;
if (flags & (NSAlphaShiftKeyMask | NSShiftKeyMask))
c = toupper(c);
if (flags & NSControlKeyMask)
c = CTRL(c);