File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ static void execute_events(input_event_array_t *input_events) {
56
56
static int_array_t * get_keys_array (configuration_t config ) {
57
57
unsigned int i , j , k ;
58
58
unsigned int keys_count = 0 ;
59
- int_array_t * keys = new_int_array (MAX_FINGERS * DIRECTIONS_COUNT * MAX_KEYS_PER_GESTURE );
59
+ int_array_t * keys = new_int_array (MAX_FINGERS * DIRECTIONS_COUNT * MAX_KEYS_PER_GESTURE + 1 );
60
60
for (i = 0 ; i < MAX_FINGERS ; i ++ ) {
61
61
for (j = 0 ; j < DIRECTIONS_COUNT ; j ++ ) {
62
62
for (k = 0 ; k < MAX_KEYS_PER_GESTURE ; k ++ ) {
@@ -67,6 +67,10 @@ static int_array_t *get_keys_array(configuration_t config) {
67
67
}
68
68
}
69
69
}
70
+ if (config .zoom .enabled ) {
71
+ keys -> data [keys_count ] = KEY_LEFTCTRL ;
72
+ keys_count ++ ;
73
+ }
70
74
keys -> length = keys_count ;
71
75
return keys ;
72
76
}
You can’t perform that action at this time.
0 commit comments