key_clear_pressed_c
status.i4.v = key_clear_pressed_c(key.u4.v, modifier.i4.v)
This routine clears the status that the requested key has been pressed.
This call must have been preceded by a call to key_press_init_c.
key key symbol to be cleared (Use the value
WMNGR_ALL_KEYS to monitor all key presses.)
(constants are in X11/keysym)
modifier modifier to be cleared
(WMNGR_NO_MODIFIER_MASK -> no modifier keys pressed,
WMNGR_SHIFT_MASK -> shift key pressed,
WMNGR_CTRL_MASK -> control key pressed,
WMNGR_ALT_MASK -> alt key pressed,
WMNGR_LOCK_MASK -> lock key pressed,
WMNGR_COMPOSE_MASK -> compose key pressed,
WMNGR_ALL_MODIFIER_MASK -> any or no modifier
keys pressed)
This function returns status values as follows:
OK key press status cleared
CBS_NO_CHANGE key had not been pressed
CBS_NOSETUP key press request (key_press_init_c) has
not been made
CBS_MEMFAIL error in allocating dynamic memory
This function requires the following include files:
cnsparam_h, cbslib_h, acnet_errors_h, X11/keysym.h
Related functions:
key_pressed_c, key_press_init_c, key_press_cancel_c
C/C++ usage:
int status;
int modifier = WMNGR_CTRL_MASK;
unsigned int key = 'f';
status = key_clear_pressed_c(key,modifier);