mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
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:
+6
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user