Keypad enter no longer conflicts with Ctrl-C (fixing Ctrl-C bug)

git-svn-id: http://macvim.googlecode.com/svn/trunk@137 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-08-14 17:18:25 +00:00
parent d0aa271e7a
commit 5e9bd1011d
3 changed files with 15 additions and 2 deletions
+6 -1
View File
@@ -456,7 +456,12 @@
// separately (else Ctrl-Y doesn't work).
static char back_tab[2] = { 'k', 'B' };
len = 2; bytes = back_tab;
}else {
} else if (c == 0x3 && imc == 0x3) {
// HACK! AppKit turns enter (not return) into Ctrl-C, so we need to
// handle it separately (else Ctrl-C doesn't work).
static char enter[2] = { 'K', 'A' };
len = 2; bytes = enter;
} else {
len = [chars lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
bytes = [chars UTF8String];
}