Re: question keycode->keysym
Iban HATCHONDO <[email protected]> Wed, 5 Mar 2003 22:49:12 +0100 (CET)
| Newsgroups | gmane.lisp.clx.devel |
|---|---|
| Message-ID | <[email protected]> |
--- Iban <[email protected]> a écrit : > Hi all, > I guess I miss something but I can't find it. Does > somebody have an idea > of the thing to do to advise CLX to redo its > internal map or something ?? > > Regards, > !ban. The solution was: clx/translation.lisp ;; the next function is an exported by clx. (defun mapping-notify (display request start count) ;; Called on a mapping-notify event to update ;; the keyboard-mapping cache in DISPLAY (declare (type display display) (type (member :modifier :keyboard :pointer) request) (type card8 start count) (ignore count start)) ;; Invalidate the keyboard mapping to force the next key translation to get it (case request (:modifier (setf (display-modifier-mapping display) nil)) (:keyboard (setf (display-keysym-mapping display) nil)))) It invalidate the internal map which is recompute when you call one of the keycode/keysym translation functions I think that we should update Guilbert's Baumann html man. This function is documented in the original doc.lisp file but does not appear in the html man. As for some others, and some typo err like keycode-keysym which is in reality keycode->keysym Regards, !ban. PS: Guilbert, if you read this message, please don't be mad at me. :o) ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com