Fix trailing whitespace
This commit is contained in:
parent
fdcfcfa1b9
commit
5b2a9b101d
2 changed files with 8 additions and 8 deletions
14
kitty/keys.h
generated
14
kitty/keys.h
generated
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ def ind(*a):
|
|||
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 = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue