diff --git a/kitty/keys.h b/kitty/keys.h index e561077d4..a1fef8048 100644 --- a/kitty/keys.h +++ b/kitty/keys.h @@ -487,7 +487,7 @@ static inline const char* key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) { switch(mode) { case NORMAL: - switch(action & 3) { case 3: return NULL; + switch(action & 3) { case 3: return NULL; case 0: // RELEASE return NULL; @@ -2891,7 +2891,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) { case APPLICATION: - switch(action & 3) { case 3: return NULL; + switch(action & 3) { case 3: return NULL; case 0: // RELEASE return NULL; @@ -5295,7 +5295,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) { case EXTENDED: - switch(action & 3) { case 3: return NULL; + switch(action & 3) { case 3: return NULL; case 0: // RELEASE switch (mods & 0xf) { case 0x0: diff --git a/kitty/keys.py b/kitty/keys.py index a627aa072..b4e5d7864 100644 --- a/kitty/keys.py +++ b/kitty/keys.py @@ -281,7 +281,7 @@ def generate_key_table(): i += 1 ind('case {}:'.format(mode)) i += 1 - ind('switch(action & 3) { case 3: return NULL; ') + ind('switch(action & 3) { case 3: return NULL;') for action in (defines.GLFW_RELEASE, defines.GLFW_PRESS, defines.GLFW_REPEAT): i += 1 ind('case {}: // {}'.format(action, 'RELEASE PRESS REPEAT'.split()[action]))