Improve keyboard code names

This commit is contained in:
htrefil 2020-10-30 18:02:43 +01:00
parent b18d0282e4
commit 7a38eebd8a
2 changed files with 157 additions and 157 deletions

View file

@ -1,6 +1,6 @@
listen-address = "0.0.0.0:5258"
# Switch to next client by pressing the left alt key.
switch-keys = ["Leftalt"]
switch-keys = ["LeftAlt"]
identity-path = "identity.p12"
# Leave unset if no password is set.
identity-password = "123456789"

View file

@ -4,10 +4,10 @@ use serde::{Deserialize, Serialize};
pub enum Key {
A,
Ab,
Addressbook,
AddressBook,
Again,
AlsToggle,
Alterase,
AltErase,
Angle,
Apostrophe,
Appselect,
@ -48,7 +48,7 @@ pub enum Key {
BrlDot7,
BrlDot8,
BrlDot9,
Buttonconfig,
ButtonConfig,
C,
Calc,
Calendar,
@ -58,8 +58,8 @@ pub enum Key {
CameraLeft,
CameraRight,
CameraUp,
CameraZoomin,
CameraZoomout,
CameraZoomIn,
CameraZoomOut,
Cancel,
Capslock,
Cd,
@ -69,7 +69,7 @@ pub enum Key {
Chat,
Clear,
Close,
Closecd,
CloseCd,
Coffee,
Comma,
Compose,
@ -80,7 +80,7 @@ pub enum Key {
Controlpanel,
Copy,
Cut,
Cyclewindows,
CycleWindows,
D,
Dashboard,
Data,
@ -89,12 +89,12 @@ pub enum Key {
DelEos,
DelLine,
Delete,
Deletefile,
DeleteFile,
Digits,
Direction,
Directory,
DisplayOff,
Displaytoggle,
DisplayToggle,
Documents,
Dollar,
Dot,
@ -104,7 +104,7 @@ pub enum Key {
Edit,
Editor,
Ejectcd,
Ejectclosecd,
EjectCloseCd,
Email,
End,
Enter,
@ -138,8 +138,8 @@ pub enum Key {
F7,
F8,
F9,
Fastforward,
Fastreverse,
FastForward,
FastReverse,
Favorites,
File,
Finance,
@ -167,15 +167,15 @@ pub enum Key {
FnF9,
FnS,
Forward,
Forwardmail,
ForwardMail,
Frameback,
Frameforward,
FrameForward,
Front,
FullScreen,
G,
Games,
Goto,
Graphicseditor,
GraphicsEditor,
Grave,
Green,
H,
@ -197,22 +197,22 @@ pub enum Key {
Journal,
K,
Katakana,
Katakanahiragana,
KatakanaHiragana,
KbdLayoutNext,
KbdLcdMenu1,
KbdLcdMenu2,
KbdLcdMenu3,
KbdLcdMenu4,
KbdLcdMenu5,
Kbdillumdown,
Kbdillumtoggle,
KbdIllumDown,
KbdIllumToggle,
Kbdillumup,
KbdinputassistAccept,
KbdinputassistCancel,
KbdinputassistNext,
KbdinputassistNextgroup,
KbdinputassistPrev,
KbdinputassistPrevgroup,
KbdInputAssistAccept,
KbdInputAssistCancel,
KbdInputAssistNext,
KbdInputAssistNextgroup,
KbdInputAssistPrev,
KbdInputAssistPrevgroup,
Keyboard,
Kp0,
Kp1,
@ -224,29 +224,29 @@ pub enum Key {
Kp7,
Kp8,
Kp9,
Kpasterisk,
Kpcomma,
Kpdot,
Kpenter,
Kpequal,
Kpjpcomma,
Kpleftparen,
Kpminus,
Kpplus,
Kpplusminus,
Kprightparen,
Kpslash,
KPAsterisk,
KPComma,
KPDott,
KPEnter,
KPEqual,
KPJpcomma,
KPLeftparen,
KPMinus,
KPPlus,
KPPlusMinus,
KPRightParen,
KPSlash,
L,
Language,
Last,
Left,
LeftDown,
LeftUp,
Leftalt,
Leftbrace,
Leftctrl,
Leftmeta,
Leftshift,
LeftAlt,
LeftBrace,
LeftCtrl,
LeftMeta,
LeftShift,
LightsToggle,
Linefeed,
List,
@ -302,7 +302,7 @@ pub enum Key {
Mode,
Move,
Mp3,
Msdos,
MsDos,
Muhenkan,
Mute,
N,
@ -409,22 +409,22 @@ pub enum Key {
Screen,
Screenlock,
Screensaver,
Scrolldown,
Scrolllock,
Scrollup,
ScrollDown,
ScrollLock,
ScrollUp,
Search,
Select,
SelectiveScreenshot,
Semicolon,
Send,
Sendfile,
SendFile,
Setup,
Shop,
Shuffle,
Slash,
Sleep,
Slow,
Slowreverse,
SlowReverse,
Sound,
Space,
Spellcheck,
@ -432,15 +432,15 @@ pub enum Key {
Spreadsheet,
Stop,
StopRecord,
Stopcd,
StopCd,
Subtitle,
Suspend,
Switchvideomode,
Sysrq,
SwitchVideoMode,
SysRq,
T,
Tab,
Tape,
Taskmanager,
TaskManager,
Teen,
Text,
Time,
@ -485,7 +485,7 @@ pub enum Key {
Yellow,
Yen,
Z,
Zenkakuhankaku,
ZenkakuHankaku,
Zoom,
Zoomin,
Zoomout,
@ -499,10 +499,10 @@ impl Key {
match *self {
A => 0x001E,
Ab => 0x0196,
Addressbook => 0x01AD,
AddressBook => 0x01AD,
Again => 0x0081,
AlsToggle => 0x0230,
Alterase => 0x00DE,
AltErase => 0x00DE,
Angle => 0x0173,
Apostrophe => 0x0028,
Appselect => 0x0244,
@ -543,7 +543,7 @@ impl Key {
BrlDot7 => 0x01F7,
BrlDot8 => 0x01F8,
BrlDot9 => 0x01F9,
Buttonconfig => 0x0240,
ButtonConfig => 0x0240,
C => 0x002E,
Calc => 0x008C,
Calendar => 0x018D,
@ -553,8 +553,8 @@ impl Key {
CameraLeft => 0x0219,
CameraRight => 0x021A,
CameraUp => 0x0217,
CameraZoomin => 0x0215,
CameraZoomout => 0x0216,
CameraZoomIn => 0x0215,
CameraZoomOut => 0x0216,
Cancel => 0x00DF,
Capslock => 0x003A,
Cd => 0x017F,
@ -564,7 +564,7 @@ impl Key {
Chat => 0x00D8,
Clear => 0x0163,
Close => 0x00CE,
Closecd => 0x00A0,
CloseCd => 0x00A0,
Coffee => 0x0098,
Comma => 0x0033,
Compose => 0x007F,
@ -575,7 +575,7 @@ impl Key {
Controlpanel => 0x0243,
Copy => 0x0085,
Cut => 0x0089,
Cyclewindows => 0x009A,
CycleWindows => 0x009A,
D => 0x0020,
Dashboard => 0x00CC,
Data => 0x0277,
@ -584,12 +584,12 @@ impl Key {
DelEos => 0x01C1,
DelLine => 0x01C3,
Delete => 0x006F,
Deletefile => 0x0092,
DeleteFile => 0x0092,
Digits => 0x019D,
Direction => 0x0099,
Directory => 0x018A,
DisplayOff => 0x00F5,
Displaytoggle => 0x01AF,
DisplayToggle => 0x01AF,
Documents => 0x00EB,
Dollar => 0x01B2,
Dot => 0x0034,
@ -599,7 +599,7 @@ impl Key {
Edit => 0x00B0,
Editor => 0x01A6,
Ejectcd => 0x00A1,
Ejectclosecd => 0x00A2,
EjectCloseCd => 0x00A2,
Email => 0x00D7,
End => 0x006B,
Enter => 0x001C,
@ -633,8 +633,8 @@ impl Key {
F7 => 0x0041,
F8 => 0x0042,
F9 => 0x0043,
Fastforward => 0x00D0,
Fastreverse => 0x0275,
FastForward => 0x00D0,
FastReverse => 0x0275,
Favorites => 0x016C,
File => 0x0090,
Finance => 0x00DB,
@ -662,15 +662,15 @@ impl Key {
FnF9 => 0x01DA,
FnS => 0x01E3,
Forward => 0x009F,
Forwardmail => 0x00E9,
ForwardMail => 0x00E9,
Frameback => 0x01B4,
Frameforward => 0x01B5,
FrameForward => 0x01B5,
Front => 0x0084,
FullScreen => 0x0174,
G => 0x0022,
Games => 0x01A1,
Goto => 0x0162,
Graphicseditor => 0x01A8,
GraphicsEditor => 0x01A8,
Grave => 0x0029,
Green => 0x018F,
H => 0x0023,
@ -692,22 +692,22 @@ impl Key {
Journal => 0x0242,
K => 0x0025,
Katakana => 0x005A,
Katakanahiragana => 0x005D,
KatakanaHiragana => 0x005D,
KbdLayoutNext => 0x0248,
KbdLcdMenu1 => 0x02B8,
KbdLcdMenu2 => 0x02B9,
KbdLcdMenu3 => 0x02BA,
KbdLcdMenu4 => 0x02BB,
KbdLcdMenu5 => 0x02BC,
Kbdillumdown => 0x00E5,
Kbdillumtoggle => 0x00E4,
KbdIllumDown => 0x00E5,
KbdIllumToggle => 0x00E4,
Kbdillumup => 0x00E6,
KbdinputassistAccept => 0x0264,
KbdinputassistCancel => 0x0265,
KbdinputassistNext => 0x0261,
KbdinputassistNextgroup => 0x0263,
KbdinputassistPrev => 0x0260,
KbdinputassistPrevgroup => 0x0262,
KbdInputAssistAccept => 0x0264,
KbdInputAssistCancel => 0x0265,
KbdInputAssistNext => 0x0261,
KbdInputAssistNextgroup => 0x0263,
KbdInputAssistPrev => 0x0260,
KbdInputAssistPrevgroup => 0x0262,
Keyboard => 0x0176,
Kp0 => 0x0052,
Kp1 => 0x004F,
@ -719,29 +719,29 @@ impl Key {
Kp7 => 0x0047,
Kp8 => 0x0048,
Kp9 => 0x0049,
Kpasterisk => 0x0037,
Kpcomma => 0x0079,
Kpdot => 0x0053,
Kpenter => 0x0060,
Kpequal => 0x0075,
Kpjpcomma => 0x005F,
Kpleftparen => 0x00B3,
Kpminus => 0x004A,
Kpplus => 0x004E,
Kpplusminus => 0x0076,
Kprightparen => 0x00B4,
Kpslash => 0x0062,
KPAsterisk => 0x0037,
KPComma => 0x0079,
KPDott => 0x0053,
KPEnter => 0x0060,
KPEqual => 0x0075,
KPJpcomma => 0x005F,
KPLeftparen => 0x00B3,
KPMinus => 0x004A,
KPPlus => 0x004E,
KPPlusMinus => 0x0076,
KPRightParen => 0x00B4,
KPSlash => 0x0062,
L => 0x0026,
Language => 0x0170,
Last => 0x0195,
Left => 0x0069,
LeftDown => 0x0269,
LeftUp => 0x0268,
Leftalt => 0x0038,
Leftbrace => 0x001A,
Leftctrl => 0x001D,
Leftmeta => 0x007D,
Leftshift => 0x002A,
LeftAlt => 0x0038,
LeftBrace => 0x001A,
LeftCtrl => 0x001D,
LeftMeta => 0x007D,
LeftShift => 0x002A,
LightsToggle => 0x021E,
Linefeed => 0x0065,
List => 0x018B,
@ -797,7 +797,7 @@ impl Key {
Mode => 0x0175,
Move => 0x00AF,
Mp3 => 0x0187,
Msdos => 0x0097,
MsDos => 0x0097,
Muhenkan => 0x005E,
Mute => 0x0071,
N => 0x0031,
@ -904,22 +904,22 @@ impl Key {
Screen => 0x0177,
Screenlock => 0x0098,
Screensaver => 0x0245,
Scrolldown => 0x00B2,
Scrolllock => 0x0046,
Scrollup => 0x00B1,
ScrollDown => 0x00B2,
ScrollLock => 0x0046,
ScrollUp => 0x00B1,
Search => 0x00D9,
Select => 0x0161,
SelectiveScreenshot => 0x027A,
Semicolon => 0x0027,
Send => 0x00E7,
Sendfile => 0x0091,
SendFile => 0x0091,
Setup => 0x008D,
Shop => 0x00DD,
Shuffle => 0x019A,
Slash => 0x0035,
Sleep => 0x008E,
Slow => 0x0199,
Slowreverse => 0x0276,
SlowReverse => 0x0276,
Sound => 0x00D5,
Space => 0x0039,
Spellcheck => 0x01B0,
@ -927,15 +927,15 @@ impl Key {
Spreadsheet => 0x01A7,
Stop => 0x0080,
StopRecord => 0x0271,
Stopcd => 0x00A6,
StopCd => 0x00A6,
Subtitle => 0x0172,
Suspend => 0x00CD,
Switchvideomode => 0x00E3,
Sysrq => 0x0063,
SwitchVideoMode => 0x00E3,
SysRq => 0x0063,
T => 0x0014,
Tab => 0x000F,
Tape => 0x0180,
Taskmanager => 0x0241,
TaskManager => 0x0241,
Teen => 0x019E,
Text => 0x0184,
Time => 0x0167,
@ -980,7 +980,7 @@ impl Key {
Yellow => 0x0190,
Yen => 0x007C,
Z => 0x002C,
Zenkakuhankaku => 0x0055,
ZenkakuHankaku => 0x0055,
Zoom => 0x0174,
Zoomin => 0x01A2,
Zoomout => 0x01A3,
@ -996,10 +996,10 @@ impl Key {
let key = match code {
0x001E => A,
0x0196 => Ab,
0x01AD => Addressbook,
0x01AD => AddressBook,
0x0081 => Again,
0x0230 => AlsToggle,
0x00DE => Alterase,
0x00DE => AltErase,
0x0173 => Angle,
0x0028 => Apostrophe,
0x0244 => Appselect,
@ -1038,7 +1038,7 @@ impl Key {
0x01F7 => BrlDot7,
0x01F8 => BrlDot8,
0x01F9 => BrlDot9,
0x0240 => Buttonconfig,
0x0240 => ButtonConfig,
0x002E => C,
0x008C => Calc,
0x018D => Calendar,
@ -1048,8 +1048,8 @@ impl Key {
0x0219 => CameraLeft,
0x021A => CameraRight,
0x0217 => CameraUp,
0x0215 => CameraZoomin,
0x0216 => CameraZoomout,
0x0215 => CameraZoomIn,
0x0216 => CameraZoomOut,
0x00DF => Cancel,
0x003A => Capslock,
0x017F => Cd,
@ -1059,7 +1059,7 @@ impl Key {
0x00D8 => Chat,
0x0163 => Clear,
0x00CE => Close,
0x00A0 => Closecd,
0x00A0 => CloseCd,
0x0098 => Coffee,
0x0033 => Comma,
0x007F => Compose,
@ -1070,7 +1070,7 @@ impl Key {
0x0243 => Controlpanel,
0x0085 => Copy,
0x0089 => Cut,
0x009A => Cyclewindows,
0x009A => CycleWindows,
0x0020 => D,
0x00CC => Dashboard,
0x0277 => Data,
@ -1079,11 +1079,11 @@ impl Key {
0x01C1 => DelEos,
0x01C3 => DelLine,
0x006F => Delete,
0x0092 => Deletefile,
0x0092 => DeleteFile,
0x019D => Digits,
0x018A => Directory,
0x00F5 => DisplayOff,
0x01AF => Displaytoggle,
0x01AF => DisplayToggle,
0x00EB => Documents,
0x01B2 => Dollar,
0x0034 => Dot,
@ -1093,7 +1093,7 @@ impl Key {
0x00B0 => Edit,
0x01A6 => Editor,
0x00A1 => Ejectcd,
0x00A2 => Ejectclosecd,
0x00A2 => EjectCloseCd,
0x00D7 => Email,
0x006B => End,
0x001C => Enter,
@ -1127,8 +1127,8 @@ impl Key {
0x0041 => F7,
0x0042 => F8,
0x0043 => F9,
0x00D0 => Fastforward,
0x0275 => Fastreverse,
0x00D0 => FastForward,
0x0275 => FastReverse,
0x016C => Favorites,
0x0090 => File,
0x00DB => Finance,
@ -1156,15 +1156,15 @@ impl Key {
0x01DA => FnF9,
0x01E3 => FnS,
0x009F => Forward,
0x00E9 => Forwardmail,
0x00E9 => ForwardMail,
0x01B4 => Frameback,
0x01B5 => Frameforward,
0x01B5 => FrameForward,
0x0084 => Front,
0x0174 => FullScreen,
0x0022 => G,
0x01A1 => Games,
0x0162 => Goto,
0x01A8 => Graphicseditor,
0x01A8 => GraphicsEditor,
0x0029 => Grave,
0x018F => Green,
0x0023 => H,
@ -1186,22 +1186,22 @@ impl Key {
0x0242 => Journal,
0x0025 => K,
0x005A => Katakana,
0x005D => Katakanahiragana,
0x005D => KatakanaHiragana,
0x0248 => KbdLayoutNext,
0x02B8 => KbdLcdMenu1,
0x02B9 => KbdLcdMenu2,
0x02BA => KbdLcdMenu3,
0x02BB => KbdLcdMenu4,
0x02BC => KbdLcdMenu5,
0x00E5 => Kbdillumdown,
0x00E4 => Kbdillumtoggle,
0x00E5 => KbdIllumDown,
0x00E4 => KbdIllumToggle,
0x00E6 => Kbdillumup,
0x0264 => KbdinputassistAccept,
0x0265 => KbdinputassistCancel,
0x0261 => KbdinputassistNext,
0x0263 => KbdinputassistNextgroup,
0x0260 => KbdinputassistPrev,
0x0262 => KbdinputassistPrevgroup,
0x0264 => KbdInputAssistAccept,
0x0265 => KbdInputAssistCancel,
0x0261 => KbdInputAssistNext,
0x0263 => KbdInputAssistNextgroup,
0x0260 => KbdInputAssistPrev,
0x0262 => KbdInputAssistPrevgroup,
0x0176 => Keyboard,
0x0052 => Kp0,
0x004F => Kp1,
@ -1213,29 +1213,29 @@ impl Key {
0x0047 => Kp7,
0x0048 => Kp8,
0x0049 => Kp9,
0x0037 => Kpasterisk,
0x0079 => Kpcomma,
0x0053 => Kpdot,
0x0060 => Kpenter,
0x0075 => Kpequal,
0x005F => Kpjpcomma,
0x00B3 => Kpleftparen,
0x004A => Kpminus,
0x004E => Kpplus,
0x0076 => Kpplusminus,
0x00B4 => Kprightparen,
0x0062 => Kpslash,
0x0037 => KPAsterisk,
0x0079 => KPComma,
0x0053 => KPDott,
0x0060 => KPEnter,
0x0075 => KPEqual,
0x005F => KPJpcomma,
0x00B3 => KPLeftparen,
0x004A => KPMinus,
0x004E => KPPlus,
0x0076 => KPPlusMinus,
0x00B4 => KPRightParen,
0x0062 => KPSlash,
0x0026 => L,
0x0170 => Language,
0x0195 => Last,
0x0069 => Left,
0x0269 => LeftDown,
0x0268 => LeftUp,
0x0038 => Leftalt,
0x001A => Leftbrace,
0x001D => Leftctrl,
0x007D => Leftmeta,
0x002A => Leftshift,
0x0038 => LeftAlt,
0x001A => LeftBrace,
0x001D => LeftCtrl,
0x007D => LeftMeta,
0x002A => LeftShift,
0x021E => LightsToggle,
0x0065 => Linefeed,
0x018B => List,
@ -1291,7 +1291,7 @@ impl Key {
0x0175 => Mode,
0x00AF => Move,
0x0187 => Mp3,
0x0097 => Msdos,
0x0097 => MsDos,
0x005E => Muhenkan,
0x0071 => Mute,
0x0031 => N,
@ -1396,22 +1396,22 @@ impl Key {
0x00EA => Save,
0x0078 => Scale,
0x0245 => Screensaver,
0x00B2 => Scrolldown,
0x0046 => Scrolllock,
0x00B1 => Scrollup,
0x00B2 => ScrollDown,
0x0046 => ScrollLock,
0x00B1 => ScrollUp,
0x00D9 => Search,
0x0161 => Select,
0x027A => SelectiveScreenshot,
0x0027 => Semicolon,
0x00E7 => Send,
0x0091 => Sendfile,
0x0091 => SendFile,
0x008D => Setup,
0x00DD => Shop,
0x019A => Shuffle,
0x0035 => Slash,
0x008E => Sleep,
0x0199 => Slow,
0x0276 => Slowreverse,
0x0276 => SlowReverse,
0x00D5 => Sound,
0x0039 => Space,
0x01B0 => Spellcheck,
@ -1419,15 +1419,15 @@ impl Key {
0x01A7 => Spreadsheet,
0x0080 => Stop,
0x0271 => StopRecord,
0x00A6 => Stopcd,
0x00A6 => StopCd,
0x0172 => Subtitle,
0x00CD => Suspend,
0x00E3 => Switchvideomode,
0x0063 => Sysrq,
0x00E3 => SwitchVideoMode,
0x0063 => SysRq,
0x0014 => T,
0x000F => Tab,
0x0180 => Tape,
0x0241 => Taskmanager,
0x0241 => TaskManager,
0x019E => Teen,
0x0184 => Text,
0x0167 => Time,
@ -1471,7 +1471,7 @@ impl Key {
0x0190 => Yellow,
0x007C => Yen,
0x002C => Z,
0x0055 => Zenkakuhankaku,
0x0055 => ZenkakuHankaku,
0x01A2 => Zoomin,
0x01A3 => Zoomout,
0x01A4 => Zoomreset,