More trailing whitespace
This commit is contained in:
6
kitty/keys.h
generated
6
kitty/keys.h
generated
@@ -487,7 +487,7 @@ static inline const char*
|
|||||||
key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
case NORMAL:
|
case NORMAL:
|
||||||
switch(action & 3) { case 3: return NULL;
|
switch(action & 3) { case 3: return NULL;
|
||||||
case 0: // RELEASE
|
case 0: // RELEASE
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@@ -2891,7 +2891,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
|||||||
|
|
||||||
|
|
||||||
case APPLICATION:
|
case APPLICATION:
|
||||||
switch(action & 3) { case 3: return NULL;
|
switch(action & 3) { case 3: return NULL;
|
||||||
case 0: // RELEASE
|
case 0: // RELEASE
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@@ -5295,7 +5295,7 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
|||||||
|
|
||||||
|
|
||||||
case EXTENDED:
|
case EXTENDED:
|
||||||
switch(action & 3) { case 3: return NULL;
|
switch(action & 3) { case 3: return NULL;
|
||||||
case 0: // RELEASE
|
case 0: // RELEASE
|
||||||
switch (mods & 0xf) {
|
switch (mods & 0xf) {
|
||||||
case 0x0:
|
case 0x0:
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ def generate_key_table():
|
|||||||
i += 1
|
i += 1
|
||||||
ind('case {}:'.format(mode))
|
ind('case {}:'.format(mode))
|
||||||
i += 1
|
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):
|
for action in (defines.GLFW_RELEASE, defines.GLFW_PRESS, defines.GLFW_REPEAT):
|
||||||
i += 1
|
i += 1
|
||||||
ind('case {}: // {}'.format(action, 'RELEASE PRESS REPEAT'.split()[action]))
|
ind('case {}: // {}'.format(action, 'RELEASE PRESS REPEAT'.split()[action]))
|
||||||
|
|||||||
Reference in New Issue
Block a user