* nsterm.m (insertText:): Don't clear modifiers if code is space.

This commit is contained in:
Jan Djärv 2012-08-22 11:55:35 +02:00
parent caceae2529
commit 4ce7a13803
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-08-22 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (insertText:): Don't clear modifiers if code is space.
2012-08-22 Paul Eggert <eggert@cs.ucla.edu>
* fontset.c (FONTSET_ADD): Return void, not Lisp_Object.

View file

@ -5091,7 +5091,8 @@ - (void)insertText: (id)aString
/* TODO: still need this? */
if (code == 0x2DC)
code = '~'; /* 0x7E */
emacs_event->modifiers = 0;
if (code != 32) /* Space */
emacs_event->modifiers = 0;
emacs_event->kind
= code > 0xFF ? MULTIBYTE_CHAR_KEYSTROKE_EVENT : ASCII_KEYSTROKE_EVENT;
emacs_event->code = code;