Re: XForms: Keysym for capital letter in raw callback

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 2 Dec 98 13:43:53 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> This program has to do diferent things depending on whether the user
> pressed Ctrl-c or Ctrl-C.
> The program xev(1) displays "(keysym 0x43, C)" when ctrl-Shift-c is hit.
> However, my xforms form raw callback always returns XK_c (keysym 0x63).
> I event tried hitting ctrl+LOCK+c and ctrl+shift+c to no avail: it's
> always XK_c in the raw callback.

I'm not sure if this is correct behavior or not and don't have the
time to research it thoroughly but you can use the `state' field in
the KeyPress event to check whether Ctrl and Shift are pressed. This
is the way I handle it.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/