JWM Source Documentation

key.h File Reference

Header for the key binding functions. More...

Go to the source code of this file.

Enumerations

enum  KeyType {
  KEY_NONE, KEY_UP, KEY_DOWN, KEY_RIGHT,
  KEY_LEFT, KEY_ESC, KEY_ENTER, KEY_NEXT,
  KEY_NEXTSTACK, KEY_PREV, KEY_PREVSTACK, KEY_CLOSE,
  KEY_MIN, KEY_MAX, KEY_SHADE, KEY_STICK,
  KEY_MOVE, KEY_RESIZE, KEY_ROOT, KEY_WIN,
  KEY_DESKTOP, KEY_RDESKTOP, KEY_LDESKTOP, KEY_UDESKTOP,
  KEY_DDESKTOP, KEY_SHOWDESK, KEY_SHOWTRAY, KEY_EXEC,
  KEY_RESTART, KEY_EXIT, KEY_FULLSCREEN
}
 Enumeration of key binding types. More...

Functions

void InitializeKeys ()
void StartupKeys ()
void ShutdownKeys ()
void DestroyKeys ()
KeyType GetKey (const XKeyEvent *event)
 Get the action to take from a key event.
void GrabKeys (struct ClientNode *np)
 Grab keys on a client window.
void InsertBinding (KeyType key, const char *modifiers, const char *stroke, const char *code, const char *command)
 Insert a key binding.
void RunKeyCommand (const XKeyEvent *event)
 Run a command caused by a key binding.
void ShowKeyMenu (const XKeyEvent *event)
 Show a root menu caused by a key binding.
void ValidateKeys ()
 Validate key bindings.

Detailed Description

Header for the key binding functions.

Author:
Joe Wingbermuehle
Date:
2004-2006

Definition in file key.h.


Enumeration Type Documentation

enum KeyType

Enumeration of key binding types.

Enumerator:
KEY_NONE 
KEY_UP 
KEY_DOWN 
KEY_RIGHT 
KEY_LEFT 
KEY_ESC 
KEY_ENTER 
KEY_NEXT 
KEY_NEXTSTACK 
KEY_PREV 
KEY_PREVSTACK 
KEY_CLOSE 
KEY_MIN 
KEY_MAX 
KEY_SHADE 
KEY_STICK 
KEY_MOVE 
KEY_RESIZE 
KEY_ROOT 
KEY_WIN 
KEY_DESKTOP 
KEY_RDESKTOP 
KEY_LDESKTOP 
KEY_UDESKTOP 
KEY_DDESKTOP 
KEY_SHOWDESK 
KEY_SHOWTRAY 
KEY_EXEC 
KEY_RESTART 
KEY_EXIT 
KEY_FULLSCREEN 

Definition at line 16 of file key.h.


Function Documentation

void DestroyKeys ( )
KeyType GetKey ( const XKeyEvent *  event)

Get the action to take from a key event.

Parameters:
eventThe event.
void GrabKeys ( struct ClientNode np)

Grab keys on a client window.

Parameters:
npThe client.
void InitializeKeys ( )
void InsertBinding ( KeyType  key,
const char *  modifiers,
const char *  stroke,
const char *  code,
const char *  command 
)

Insert a key binding.

Parameters:
keyThe key binding type.
modifiersThe modifier mask.
strokeThe key stroke (not needed if code given).
codeThe key code (not needed if stroke given).
commandExtra parameter needed for some key binding types.
void RunKeyCommand ( const XKeyEvent *  event)

Run a command caused by a key binding.

Parameters:
eventThe event causing the command to be run.
void ShowKeyMenu ( const XKeyEvent *  event)

Show a root menu caused by a key binding.

Parameters:
eventThe event that caused the menu to be shown.
void ShutdownKeys ( )
void StartupKeys ( )
void ValidateKeys ( )

Validate key bindings.

This will log an error if an invalid key binding is found. This is called after parsing the configuration file.