Commit 4ce7a138 authored by Jan Djärv's avatar Jan Djärv

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

parent caceae25
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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment