Mercurial > emacs
comparison src/xterm.c @ 1841:338e4ffdb54b
(XTread_socket): Support extra_keyboard_modifiers.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 07 Feb 1993 00:30:36 +0000 |
parents | 04fb1d3d6992 |
children | f569bc4e9b8f |
comparison
equal
deleted
inserted
replaced
1840:b00ada422354 | 1841:338e4ffdb54b |
---|---|
255 /* From time to time we get info on an Emacs window, here. */ | 255 /* From time to time we get info on an Emacs window, here. */ |
256 | 256 |
257 static WINDOWINFO_TYPE windowinfo; | 257 static WINDOWINFO_TYPE windowinfo; |
258 | 258 |
259 extern int errno; | 259 extern int errno; |
260 | |
261 /* See keyboard.c. */ | |
262 extern int extra_keyboard_modifiers; | |
260 | 263 |
261 extern Display *XOpenDisplay (); | 264 extern Display *XOpenDisplay (); |
262 extern Window XCreateWindow (); | 265 extern Window XCreateWindow (); |
263 | 266 |
264 extern Cursor XCreateCursor (); | 267 extern Cursor XCreateCursor (); |
2677 | 2680 |
2678 if (f != 0) | 2681 if (f != 0) |
2679 { | 2682 { |
2680 KeySym keysym; | 2683 KeySym keysym; |
2681 char copy_buffer[80]; | 2684 char copy_buffer[80]; |
2682 int modifiers = event.xkey.state; | 2685 int modifiers; |
2686 | |
2687 event.xkey.state |= extra_keyboard_modifiers; | |
2688 modifiers = event.xkey.state; | |
2683 | 2689 |
2684 /* Some keyboards generate different characters | 2690 /* Some keyboards generate different characters |
2685 depending on the state of the meta key, in an attempt | 2691 depending on the state of the meta key, in an attempt |
2686 to support non-English typists. It would be nice to | 2692 to support non-English typists. It would be nice to |
2687 keep this functionality somehow, but for now, we will | 2693 keep this functionality somehow, but for now, we will |