Convert an event to an input key.
function returns the input key corresponding to event
by a window system dependent manner.
In the m17n-X library,
must be a pointer to the structure
and it is handled as below.
At first, the keysym name of
is acquired by the function
Then, the name is modified as below.
If the name is one of a .. z and
has a Shift modifier, the name is converted to A .. Z respectively, and the Shift modifier is cleared.
If the name is one byte length and
has a Control modifier, the byte is bitwise anded by 0x1F and the Control modifier is cleared.
still has modifiers, the name is preceded by S- (Shift), C- (Control), M- (Meta), A- (Alt), s- (Super), and/or H- (Hyper) in this order.
For instance, if the keysym name is a and the event has Shift, Meta, and Hyper modifiers, the resulting name is M-H-A.
At last, a symbol who has the name is returned.