Fix trailing whitespace

This commit is contained in:
Kovid Goyal 2018-01-05 21:27:24 +05:30
parent fdcfcfa1b9
commit 5b2a9b101d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 8 additions and 8 deletions

14
kitty/keys.h generated
View File

@ -492,7 +492,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
return NULL;
case 1: // PRESS
switch (mods & 0xf) {
switch (mods & 0xf) {
case 0x0:
switch(key & 0x7f) { default: return NULL;
case 50: // ESCAPE
@ -1690,7 +1690,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(mods)
case 2: // REPEAT
switch (mods & 0xf) {
switch (mods & 0xf) {
case 0x0:
switch(key & 0x7f) { default: return NULL;
case 50: // ESCAPE
@ -2896,7 +2896,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
return NULL;
case 1: // PRESS
switch (mods & 0xf) {
switch (mods & 0xf) {
case 0x0:
switch(key & 0x7f) { default: return NULL;
case 50: // ESCAPE
@ -4094,7 +4094,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(mods)
case 2: // REPEAT
switch (mods & 0xf) {
switch (mods & 0xf) {
case 0x0:
switch(key & 0x7f) { default: return NULL;
case 50: // ESCAPE
@ -5297,7 +5297,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
case EXTENDED:
switch(action & 3) { case 3: return NULL;
case 0: // RELEASE
switch (mods & 0xf) {
switch (mods & 0xf) {
case 0x0:
switch(key & 0x7f) { default: return NULL;
case 0: // SPACE
@ -9061,7 +9061,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(mods)
case 1: // PRESS
switch (mods & 0xf) {
switch (mods & 0xf) {
case 0x0:
switch(key & 0x7f) { default: return NULL;
case 0: // SPACE
@ -12825,7 +12825,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(mods)
case 2: // REPEAT
switch (mods & 0xf) {
switch (mods & 0xf) {
case 0x0:
switch(key & 0x7f) { default: return NULL;
case 0: // SPACE

View File

@ -287,7 +287,7 @@ def generate_key_table():
ind('case {}: // {}'.format(action, 'RELEASE PRESS REPEAT'.split()[action]))
i += 1
if action != defines.GLFW_RELEASE or mode == 'EXTENDED':
ind('switch (mods & 0xf) { ')
ind('switch (mods & 0xf) {')
i += 1
for mods in range(16):
key_bytes = {}