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) {
5656static int_array_t * get_keys_array (configuration_t config ) {
5757 unsigned int i , j , k ;
5858 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 );
6060 for (i = 0 ; i < MAX_FINGERS ; i ++ ) {
6161 for (j = 0 ; j < DIRECTIONS_COUNT ; j ++ ) {
6262 for (k = 0 ; k < MAX_KEYS_PER_GESTURE ; k ++ ) {
@@ -67,6 +67,10 @@ static int_array_t *get_keys_array(configuration_t config) {
6767 }
6868 }
6969 }
70+ if (config .zoom .enabled ) {
71+ keys -> data [keys_count ] = KEY_LEFTCTRL ;
72+ keys_count ++ ;
73+ }
7074 keys -> length = keys_count ;
7175 return keys ;
7276}
You can’t perform that action at this time.
0 commit comments