Reorder the function keys in key.go for better troubleshootability
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Here the list of keys did not change, I simply re-ordered the lines in the file.
authored by Raphael 'kena' Poss · committed by Christian Muehlhaeuser · parent ce923aa · Browse files · 1 file·+81 added−64 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+81 added−64 removed
- other:+81 added−64 removed
Provenance
- Commit
0851898- Tree
9de980e- Author
Raphael 'kena' Poss <knz@thaumogen.net>- Committer
Christian Muehlhaeuser <muesli@gmail.com>- Parent
ce923aa
1 file changed+81 added−64 removed
modified:key.go+81 added-64 removed
447 unmodified lines448 "\x1b[[D": {Type: KeyF4}, // linux console449 "\x1b[[E": {Type: KeyF5}, // linux console450 451 // Function keys, X11452- "\x1bOP": {Type: KeyF1}, // vt100453- "\x1bOQ": {Type: KeyF2}, // vt100454- "\x1bOR": {Type: KeyF3}, // vt100455- "\x1bOS": {Type: KeyF4}, // vt100456- "\x1b[15~": {Type: KeyF5}, // also urxvt457- "\x1b[17~": {Type: KeyF6}, // also urxvt458- "\x1b[18~": {Type: KeyF7}, // also urxvt459- "\x1b[19~": {Type: KeyF8}, // also urxvt460- "\x1b[20~": {Type: KeyF9}, // also urxvt461- "\x1b[21~": {Type: KeyF10}, // also urxvt462- "\x1b[23~": {Type: KeyF11}, // also urxvt463- "\x1b[24~": {Type: KeyF12}, // also urxvt464- "\x1b[1;2P": {Type: KeyF13},465- "\x1b[1;2Q": {Type: KeyF14},466- "\x1b[1;2R": {Type: KeyF15},467- "\x1b[1;2S": {Type: KeyF16},452+ "\x1bOP": {Type: KeyF1}, // vt100, xterm453+ "\x1bOQ": {Type: KeyF2}, // vt100, xterm454+ "\x1bOR": {Type: KeyF3}, // vt100, xterm455+ "\x1bOS": {Type: KeyF4}, // vt100, xterm456+457+ "\x1b[1;3P": {Type: KeyF1, Alt: true}, // vt100, xterm458+ "\x1b[1;3Q": {Type: KeyF2, Alt: true}, // vt100, xterm459+ "\x1b[1;3R": {Type: KeyF3, Alt: true}, // vt100, xterm460+ "\x1b[1;3S": {Type: KeyF4, Alt: true}, // vt100, xterm461+462+ "\x1b[11~": {Type: KeyF1}, // urxvt463+ "\x1b[12~": {Type: KeyF2}, // urxvt464+ "\x1b[13~": {Type: KeyF3}, // urxvt465+ "\x1b[14~": {Type: KeyF4}, // urxvt466+467+ "\x1b\x1b[11~": {Type: KeyF1, Alt: true}, // urxvt468+ "\x1b\x1b[12~": {Type: KeyF2, Alt: true}, // urxvt469+ "\x1b\x1b[13~": {Type: KeyF3, Alt: true}, // urxvt470+ "\x1b\x1b[14~": {Type: KeyF4, Alt: true}, // urxvt471+472+ "\x1b[15~": {Type: KeyF5}, // vt100, xterm, also urxvt473+474+ "\x1b[15;3~": {Type: KeyF5, Alt: true}, // vt100, xterm, also urxvt475+476+ "\x1b\x1b[15~": {Type: KeyF5, Alt: true}, // urxvt477+478+ "\x1b[17~": {Type: KeyF6}, // vt100, xterm, also urxvt479+ "\x1b[18~": {Type: KeyF7}, // vt100, xterm, also urxvt480+ "\x1b[19~": {Type: KeyF8}, // vt100, xterm, also urxvt481+ "\x1b[20~": {Type: KeyF9}, // vt100, xterm, also urxvt482+ "\x1b[21~": {Type: KeyF10}, // vt100, xterm, also urxvt483+484+ "\x1b\x1b[17~": {Type: KeyF6, Alt: true}, // urxvt485+ "\x1b\x1b[18~": {Type: KeyF7, Alt: true}, // urxvt486+ "\x1b\x1b[19~": {Type: KeyF8, Alt: true}, // urxvt487+ "\x1b\x1b[20~": {Type: KeyF9, Alt: true}, // urxvt488+ "\x1b\x1b[21~": {Type: KeyF10, Alt: true}, // urxvt489+490+ "\x1b[17;3~": {Type: KeyF6, Alt: true}, // vt100, xterm491+ "\x1b[18;3~": {Type: KeyF7, Alt: true}, // vt100, xterm492+ "\x1b[19;3~": {Type: KeyF8, Alt: true}, // vt100, xterm493+ "\x1b[20;3~": {Type: KeyF9, Alt: true}, // vt100, xterm494+ "\x1b[21;3~": {Type: KeyF10, Alt: true}, // vt100, xterm495+496+ "\x1b[23~": {Type: KeyF11}, // vt100, xterm, also urxvt497+ "\x1b[24~": {Type: KeyF12}, // vt100, xterm, also urxvt498+499+ "\x1b[23;3~": {Type: KeyF11, Alt: true}, // vt100, xterm500+ "\x1b[24;3~": {Type: KeyF12, Alt: true}, // vt100, xterm501+502+ "\x1b\x1b[23~": {Type: KeyF11, Alt: true}, // urxvt503+ "\x1b\x1b[24~": {Type: KeyF12, Alt: true}, // urxvt504+505+ "\x1b[1;2P": {Type: KeyF13},506+ "\x1b[1;2Q": {Type: KeyF14},507+508+ "\x1b[25~": {Type: KeyF13}, // vt100, xterm, also urxvt509+ "\x1b[26~": {Type: KeyF14}, // vt100, xterm, also urxvt510+511+ "\x1b[25;3~": {Type: KeyF13, Alt: true}, // vt100, xterm512+ "\x1b[26;3~": {Type: KeyF14, Alt: true}, // vt100, xterm513+514+ "\x1b\x1b[25~": {Type: KeyF13, Alt: true}, // urxvt515+ "\x1b\x1b[26~": {Type: KeyF14, Alt: true}, // urxvt516+517+ "\x1b[1;2R": {Type: KeyF15},518+ "\x1b[1;2S": {Type: KeyF16},519+520+ "\x1b[28~": {Type: KeyF15}, // vt100, xterm, also urxvt521+ "\x1b[29~": {Type: KeyF16}, // vt100, xterm, also urxvt522+523+ "\x1b[28;3~": {Type: KeyF15, Alt: true}, // vt100, xterm524+ "\x1b[29;3~": {Type: KeyF16, Alt: true}, // vt100, xterm525+526+ "\x1b\x1b[28~": {Type: KeyF15, Alt: true}, // urxvt527+ "\x1b\x1b[29~": {Type: KeyF16, Alt: true}, // urxvt528+529 "\x1b[15;2~": {Type: KeyF17},530 "\x1b[17;2~": {Type: KeyF18},531 "\x1b[18;2~": {Type: KeyF19},532 "\x1b[19;2~": {Type: KeyF20},533 473- // Function keys with the alt modifier, X11474- "\x1b[1;3P": {Type: KeyF1, Alt: true},475- "\x1b[1;3Q": {Type: KeyF2, Alt: true},476- "\x1b[1;3R": {Type: KeyF3, Alt: true},477- "\x1b[1;3S": {Type: KeyF4, Alt: true},478- "\x1b[15;3~": {Type: KeyF5, Alt: true},479- "\x1b[17;3~": {Type: KeyF6, Alt: true},480- "\x1b[18;3~": {Type: KeyF7, Alt: true},481- "\x1b[19;3~": {Type: KeyF8, Alt: true},482- "\x1b[20;3~": {Type: KeyF9, Alt: true},483- "\x1b[21;3~": {Type: KeyF10, Alt: true},484- "\x1b[23;3~": {Type: KeyF11, Alt: true},485- "\x1b[24;3~": {Type: KeyF12, Alt: true},486- "\x1b[25;3~": {Type: KeyF13, Alt: true},487- "\x1b[26;3~": {Type: KeyF14, Alt: true},488- "\x1b[28;3~": {Type: KeyF15, Alt: true},489- "\x1b[29;3~": {Type: KeyF16, Alt: true},490-491- // Function keys, urxvt492- "\x1b[11~": {Type: KeyF1},493- "\x1b[12~": {Type: KeyF2},494- "\x1b[13~": {Type: KeyF3},495- "\x1b[14~": {Type: KeyF4},496- "\x1b[25~": {Type: KeyF13},497- "\x1b[26~": {Type: KeyF14},498- "\x1b[28~": {Type: KeyF15},499- "\x1b[29~": {Type: KeyF16},534 "\x1b[31~": {Type: KeyF17},535 "\x1b[32~": {Type: KeyF18},536 "\x1b[33~": {Type: KeyF19},537 "\x1b[34~": {Type: KeyF20},538 505- // Function keys with the alt modifier, urxvt506- "\x1b\x1b[11~": {Type: KeyF1, Alt: true},507- "\x1b\x1b[12~": {Type: KeyF2, Alt: true},508- "\x1b\x1b[13~": {Type: KeyF3, Alt: true},509- "\x1b\x1b[14~": {Type: KeyF4, Alt: true},510- "\x1b\x1b[15~": {Type: KeyF5, Alt: true},511- "\x1b\x1b[17~": {Type: KeyF6, Alt: true},512- "\x1b\x1b[18~": {Type: KeyF7, Alt: true},513- "\x1b\x1b[19~": {Type: KeyF8, Alt: true},514- "\x1b\x1b[20~": {Type: KeyF9, Alt: true},515- "\x1b\x1b[21~": {Type: KeyF10, Alt: true},516- "\x1b\x1b[23~": {Type: KeyF11, Alt: true},517- "\x1b\x1b[24~": {Type: KeyF12, Alt: true},518- "\x1b\x1b[25~": {Type: KeyF13, Alt: true},519- "\x1b\x1b[26~": {Type: KeyF14, Alt: true},520- "\x1b\x1b[28~": {Type: KeyF15, Alt: true},521- "\x1b\x1b[29~": {Type: KeyF16, Alt: true},522- "\x1b\x1b[31~": {Type: KeyF17, Alt: true},523- "\x1b\x1b[32~": {Type: KeyF18, Alt: true},524- "\x1b\x1b[33~": {Type: KeyF19, Alt: true},525- "\x1b\x1b[34~": {Type: KeyF20, Alt: true},539+ "\x1b\x1b[31~": {Type: KeyF17, Alt: true}, // urxvt540+ "\x1b\x1b[32~": {Type: KeyF18, Alt: true}, // urxvt541+ "\x1b\x1b[33~": {Type: KeyF19, Alt: true}, // urxvt542+ "\x1b\x1b[34~": {Type: KeyF20, Alt: true}, // urxvt543 }544 545 // Hex code mappings.546 var hexes = map[string]Key{110 unmodified lines