59 static int nodeByKeyCmp(
const void *node,
const void *key);
64 static void parseKey(
char *key,
char *symbol);
68 static void parse(FILE *fp);
static void parse(FILE *fp)
Parse the keysrc.
static void init()
Initialize the bindings list.
static KeysCommand_t getKeyCmd(void)
Look if the just pressed key is bound to a command.
static KeysCommand_t getCmdCode(const char *symbolName)
Takes a command name and searches it in the mapping table.
static int getShortcut(KeysCommand_t cmd)
Given a keys command, return a shortcut for it, or 0 if there is none (e.g., for KEYS_NEW_WINDOW,...
static void free()
Free data.
static void delKeyCmd(int key, int mod)
Remove a key binding from the table.
static void parseKey(char *key, char *symbol)
Parse a key-combination/command-name pair, and insert it into the bindings list.
static int nodeByKeyCmp(const void *node, const void *key)
Compare function by {key,modifier} pairs.
static int getModifier(char *modifierName)
Takes a modifier name and looks it up in the mapping table.
static int getKeyCode(char *keyName)
Takes a key name and looks it up in the mapping table.