GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MINPUT_EVENT_TO_KEY (3)

NAME

minput_event_to_key - Convert an event to an input key.

CONTENTS

Synopsis
Description
Copyright

SYNOPSIS

MSymbol minput_event_to_key (MFrame * frame, void * event)

DESCRIPTION

Convert an event to an input key.

The minput_event_to_key() function returns the input key corresponding to event event on frame by a window system dependent manner.

In the m17n-X library, event must be a pointer to the structure XKeyEvent, and it is handled as below.

At first, the keysym name of event is acquired by the function XKeysymToString. Then, the name is modified as below.

If the name is one of ’a’ .. ’z’ and event 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 event has a Control modifier, the byte is bitwise anded by 0x1F and the Control modifier is cleared.

If event 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.

COPYRIGHT

Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2009 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.
Search for    or go to Top of page |  Section 3 |  Main Index


MINPUT_EVENT_TO_KEY (3m17n) 15 Oct 2009

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.