comparison man/lispref/keymaps.texi @ 2828:a25c824ed558

[xemacs-hg @ 2005-06-26 18:04:49 by aidan] Rename the ascii-character property, support more keysyms.
author aidan
date Sun, 26 Jun 2005 18:05:05 +0000
parents 1ccc32a20af4
children a81a739181dc
comparison
equal deleted inserted replaced
2827:936a6576c655 2828:a25c824ed558
243 243
244 A @dfn{key sequence} is a set of keystrokes. A @dfn{keystroke} is a 244 A @dfn{key sequence} is a set of keystrokes. A @dfn{keystroke} is a
245 keysym and some set of modifiers (such as @key{CONTROL} and @key{META}). 245 keysym and some set of modifiers (such as @key{CONTROL} and @key{META}).
246 A @dfn{keysym} is what is printed on the keys on your keyboard. 246 A @dfn{keysym} is what is printed on the keys on your keyboard.
247 247
248 A keysym may be represented by a symbol, or (if and only if it is 248 A keysym may be represented by a symbol, by a character, or by a
249 equivalent to an @sc{ascii} character in the range 32 - 255) by a 249 character's Mule code. The @kbd{A} key may be represented by the symbol
250 character or its equivalent @sc{ascii} code. The @kbd{A} key may be 250 @code{A}, the character @code{?A}, or by the number 65. The @kbd{break}
251 represented by the symbol @code{A}, the character @code{?A}, or by the 251 key may be represented only by the symbol @code{break}, and non-ASCII
252 number 65. The @kbd{break} key may be represented only by the symbol 252 X11 keys in general are limited to the symbol form with XEmacs.
253 @code{break}. 253 @footnote{A quirk of our X11 implementation means that non-ASCII keysyms
254 have different internal representations in the X11 (with GTK) and other
255 worlds (like the TTY, or Microsoft Windows), so, for example, binding
256 @kbd{EuroSign} to a command will normally work, but will not invoke that
257 command if someone presses the Euro sign in a TTY console; conversely,
258 binding @code{(make-char 'latin-iso8859-15 #xa4)} or @code{(char-to-int
259 (make-char 'latin-iso8859-15 #xa4))} to a command will call that command
260 on a TTY console, but not in an X11 window of the same process.}
261 @footnote{See the documentation for `set-input-mode' and
262 `set-console-tty-coding-system' if you're having trouble inputting
263 non-ASCII characters in the TTY.}
254 264
255 A keystroke may be represented by a list: the last element of the list 265 A keystroke may be represented by a list: the last element of the list
256 is the key (a symbol, character, or number, as above) and the preceding 266 is the key (a symbol, character, or number, as above) and the preceding
257 elements are the symbolic names of modifier keys (@key{CONTROL}, 267 elements are the symbolic names of modifier keys (@key{CONTROL},
258 @key{META}, @key{SUPER}, @key{HYPER}, @key{ALT}, and @key{SHIFT}). 268 @key{META}, @key{SUPER}, @key{HYPER}, @key{ALT}, and @key{SHIFT}).