comparison src/macterm.c @ 47030:085ca259e580

2002-08-25 Andrew Choi <akochoi@shaw.ca> * macterm.c (XTread_socket): Remove code to call SendEventToEventTarget for keys with command modifiers when mac_command_key_is_meta is nil.
author Andrew Choi <akochoi@shaw.ca>
date Sun, 25 Aug 2002 16:40:40 +0000
parents 8b7ade57211d
children 4a0541418bc5
comparison
equal deleted inserted replaced
47029:a00524dd3f6b 47030:085ca259e580
12958 Ptr kchr_ptr = (Ptr) GetScriptManagerVariable (smKCHRCache); 12958 Ptr kchr_ptr = (Ptr) GetScriptManagerVariable (smKCHRCache);
12959 unsigned long some_state = 0; 12959 unsigned long some_state = 0;
12960 bufp->code = KeyTranslate (kchr_ptr, new_keycode, 12960 bufp->code = KeyTranslate (kchr_ptr, new_keycode,
12961 &some_state) & 0xff; 12961 &some_state) & 0xff;
12962 } 12962 }
12963 #if USE_CARBON_EVENTS
12964 else if (er.modifiers & cmdKey &&
12965 (NILP (Vmac_command_key_is_meta)))
12966 {
12967 /* If this is a command key (and we are not overriding it),
12968 send back to the operating system */
12969 SendEventToEventTarget (eventRef, GetEventDispatcherTarget ());
12970 break;
12971 }
12972 #endif
12973 else 12963 else
12974 bufp->code = er.message & charCodeMask; 12964 bufp->code = er.message & charCodeMask;
12975 bufp->kind = ASCII_KEYSTROKE_EVENT; 12965 bufp->kind = ASCII_KEYSTROKE_EVENT;
12976 } 12966 }
12977 } 12967 }