aboutsummaryrefslogtreecommitdiff
path: root/src/hotkey.h
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2018-05-10 15:24:28 +0200
committerkoekeishiya <aasvi93@hotmail.com>2018-05-10 15:24:28 +0200
commit847c2c873c06a3866981834d29eccef1041f5410 (patch)
tree5054c50ee97e522e3514a347970facc8645debd0 /src/hotkey.h
parentd7f5fd5730ca252c2635efd263ba40282a31ca57 (diff)
downloadskhd-847c2c873c06a3866981834d29eccef1041f5410.tar.gz
skhd-847c2c873c06a3866981834d29eccef1041f5410.zip
#15 modes can now capture keypresses; code cleanup
Diffstat (limited to 'src/hotkey.h')
-rw-r--r--src/hotkey.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hotkey.h b/src/hotkey.h
index 576dadf..82a936f 100644
--- a/src/hotkey.h
+++ b/src/hotkey.h
@@ -53,6 +53,7 @@ struct mode
int cursor;
char *name;
char *command;
+ bool capture;
struct table hotkey_map;
};
@@ -89,9 +90,8 @@ unsigned long hash_mode(char *key);
bool same_hotkey(struct hotkey *a, struct hotkey *b);
unsigned long hash_hotkey(struct hotkey *a);
+struct hotkey create_eventkey(CGEventRef event);
bool find_and_exec_hotkey(struct hotkey *eventkey, struct table *mode_map, struct mode **current_mode);
-void cgeventflags_to_hotkeyflags(CGEventFlags flags, struct hotkey *eventkey);
-
void free_mode_map(struct table *mode_map);
#endif