Skip to content
Myr

Reorganize key.go for clarity

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Raphael 'kena' Poss · committed by Christian Muehlhaeuser · parent 2fe4aad · Browse files · 1 file+18 added−16 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−16 removed

  • other:+18 added−16 removed

1 file+18 added−16 removed

modified:key.go+18 added-16 removed
375 unmodified lines
376 "\x1b[1;8C": {Type: KeyCtrlShiftRight, Alt: true},377 "\x1b[1;8D": {Type: KeyCtrlShiftLeft, Alt: true},378379 // Miscellaneous keys380 "\x1b[Z": {Type: KeyShiftTab},381 "\x1b[2~": {Type: KeyInsert},382 "\x1b[2;3~": {Type: KeyInsert, Alt: true},380 "\x1b[Z": {Type: KeyShiftTab},381382 "\x1b[3~": {Type: KeyDelete},383 "\x1b[3;3~": {Type: KeyDelete, Alt: true},385 "\x1b[1~": {Type: KeyHome},386 "\x1b[H": {Type: KeyHome},387 "\x1b[1;3H": {Type: KeyHome, Alt: true},388 "\x1b[4~": {Type: KeyEnd},389 "\x1b[F": {Type: KeyEnd},390 "\x1b[1;3F": {Type: KeyEnd, Alt: true},384 "\x1b\x1b[3~": {Type: KeyDelete, Alt: true}, // urxvt385386 "\x1b[5~": {Type: KeyPgUp},387 "\x1b[5;3~": {Type: KeyPgUp, Alt: true},388 "\x1b\x1b[5~": {Type: KeyPgUp, Alt: true}, // urxvt389390 "\x1b[6~": {Type: KeyPgDown},391 "\x1b[6;3~": {Type: KeyPgDown, Alt: true},395 "\x1b[7~": {Type: KeyHome}, // urxvt396 "\x1b[8~": {Type: KeyEnd}, // urxvt397 "\x1b\x1b[2~": {Type: KeyInsert, Alt: true}, // urxvt398 "\x1b\x1b[3~": {Type: KeyDelete, Alt: true}, // urxvt399 "\x1b\x1b[5~": {Type: KeyPgUp, Alt: true}, // urxvt392 "\x1b\x1b[6~": {Type: KeyPgDown, Alt: true}, // urxvt401 "\x1b\x1b[7~": {Type: KeyHome, Alt: true}, // urxvt402 "\x1b\x1b[8~": {Type: KeyEnd, Alt: true}, // urxvt393394 "\x1b[1~": {Type: KeyHome},395 "\x1b[H": {Type: KeyHome}, // vt100396 "\x1b[1;3H": {Type: KeyHome, Alt: true}, // vt100397 "\x1b[4~": {Type: KeyEnd},398 "\x1b[F": {Type: KeyEnd}, // vt100399 "\x1b[1;3F": {Type: KeyEnd, Alt: true}, // vt100400401 "\x1b[7~": {Type: KeyHome}, // urxvt402 "\x1b\x1b[7~": {Type: KeyHome, Alt: true}, // urxvt403 "\x1b[8~": {Type: KeyEnd}, // urxvt404 "\x1b\x1b[8~": {Type: KeyEnd, Alt: true}, // urxvt405406 // Function keys, Linux console407 "\x1b[[A": {Type: KeyF1}, // linux console408 "\x1b[[B": {Type: KeyF2}, // linux console409 "\x1b[[C": {Type: KeyF3}, // linux console
180 unmodified lines