Skip to content

Instantly share code, notes, and snippets.

@ymorimo
Created May 13, 2010 18:47
Show Gist options
  • Save ymorimo/400231 to your computer and use it in GitHub Desktop.
Save ymorimo/400231 to your computer and use it in GitHub Desktop.
--- src/nsterm.m 2010-03-29 23:48:44 +0000
+++ src/nsterm.m 2010-05-14 09:56:22 +0000
@@ -4471,8 +4471,15 @@
? MULTIBYTE_CHAR_KEYSTROKE_EVENT : ASCII_KEYSTROKE_EVENT;
emacs_event->code = code;
- EV_TRAILER (theEvent);
- return;
+
+ /* HACK: pass shift+ascii to input manager */
+ if (emacs_event->modifiers == shift_modifier && emacs_event->kind == ASCII_KEYSTROKE_EVENT)
+ ;
+ else
+ {
+ EV_TRAILER (theEvent);
+ return;
+ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment