Skip to content

Commit

Permalink
Fix syntax to follow the rules
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoais committed Apr 17, 2021
1 parent b45e02c commit 764975e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/input_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ input_manager_process_key(struct input_manager *im,
static Uint16 lastMod = -1;
static int repeatCount = 0;

if(down && keycode == lastKeycode && event->keysym.mod == lastMod){
if (down && keycode == lastKeycode && event->keysym.mod == lastMod) {
repeatCount++;
LOGD("Repeat %d -> %d", keycode, repeatCount);
} else if(down) {
} else if (down) {
repeatCount = 0;
lastKeycode = keycode;
lastMod = event->keysym.mod;
Expand Down Expand Up @@ -522,7 +522,7 @@ input_manager_process_key(struct input_manager *im,
if (control && !repeat && down) {
if (shift) {
collapse_panels(controller);
} else if(repeatCount == 0) {
} else if (repeatCount == 0) {
expand_notification_panel(controller);
} else {
expand_settings_panel(controller);
Expand Down

0 comments on commit 764975e

Please sign in to comment.