Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save henry0312/1697875 to your computer and use it in GitHub Desktop.
Save henry0312/1697875 to your computer and use it in GitHub Desktop.
FIx typester's fix-shiftmodifier-with-ime.patch for emacs-inline.patch
diff --git a/src/nsterm.m b/src/nsterm.m
index 211b029..5a650b6 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4508,7 +4508,7 @@ ns_term_shutdown (int sig)
if (mac_pass_key_directly_to_emacs ()
|| fnKeysym
- || (emacs_event->modifiers
+ || (emacs_event->modifiers && (emacs_event->modifiers != shift_modifier)
&& [[theEvent charactersIgnoringModifiers] length] > 0))
{
emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment