summaryrefslogtreecommitdiff
path: root/plugins/keyboard/keyboard.h
blob: b183fa38b38dafa3f0735f3461c02d26cfc5a73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __plugin_keyboard_keybaord_h
#define __plugin_keyboard_keybaord_h

#include "keyaction.h"
#include <glib.h>

typedef struct KeyBindingTree {
    guint state;
    guint key;
    GList *keylist;
    KeyAction action;

    /* the next binding in the tree at the same level */
    struct KeyBindingTree *next_sibling; 
    /* the first child of this binding (next binding in a chained sequence).*/
    struct KeyBindingTree *first_child;
} KeyBindingTree;

extern KeyBindingTree *firstnode;

guint keyboard_translate_modifier(char *str);

#endif