@@ -236,9 +236,9 @@ pub fn key_from_string(key: String) -> Result<enigo::Key> {
236236 #[ cfg( target_os = "windows" ) ]
237237 "DBESChar" | "dbeschar" => Ok ( enigo:: Key :: DBESChar ) ,
238238 "Decimal" | "decimal" => Ok ( enigo:: Key :: Decimal ) ,
239- "Delete" | "delete" => Ok ( enigo:: Key :: Delete ) ,
239+ "Delete" | "delete" | "Suppr" | "suppr" => Ok ( enigo:: Key :: Delete ) ,
240240 "Divide" | "divide" => Ok ( enigo:: Key :: Divide ) ,
241- "DownArrow" | "downarrow" | "down" => Ok ( enigo:: Key :: DownArrow ) ,
241+ "DownArrow" | "downarrow" | "down" | "ArrowDown" | "arrowdown" => Ok ( enigo:: Key :: DownArrow ) ,
242242 #[ cfg( target_os = "macos" ) ]
243243 "Eject" | "eject" => Ok ( enigo:: Key :: Eject ) ,
244244 "End" | "end" => Ok ( enigo:: Key :: End ) ,
@@ -420,7 +420,7 @@ pub fn key_from_string(key: String) -> Result<enigo::Key> {
420420 #[ cfg( target_os = "windows" ) ]
421421 "LButton" | "lbutton" => Ok ( enigo:: Key :: LButton ) ,
422422 "LControl" | "lcontrol" => Ok ( enigo:: Key :: LControl ) ,
423- "LeftArrow" | "leftarrow" => Ok ( enigo:: Key :: LeftArrow ) ,
423+ "LeftArrow" | "leftarrow" | "ArrowLeft" | "arrowleft" => Ok ( enigo:: Key :: LeftArrow ) ,
424424 #[ cfg( all( unix, not( target_os = "macos" ) ) ) ]
425425 "Linefeed" | "linefeed" => Ok ( enigo:: Key :: Linefeed ) ,
426426 #[ cfg( any( target_os = "windows" , all( unix, not( target_os = "macos" ) ) ) ) ]
@@ -575,8 +575,8 @@ pub fn key_from_string(key: String) -> Result<enigo::Key> {
575575 "RControl" | "rcontrol" => Ok ( enigo:: Key :: RControl ) ,
576576 #[ cfg( all( unix, not( target_os = "macos" ) ) ) ]
577577 "Redo" | "redo" => Ok ( enigo:: Key :: Redo ) ,
578- "Return" | "return" => Ok ( enigo:: Key :: Return ) ,
579- "RightArrow" | "rightarrow" => Ok ( enigo:: Key :: RightArrow ) ,
578+ "Return" | "return" | "Enter" | "enter" => Ok ( enigo:: Key :: Return ) ,
579+ "RightArrow" | "rightarrow" | "ArrowRight" | "arrowright" => Ok ( enigo:: Key :: RightArrow ) ,
580580 #[ cfg( target_os = "windows" ) ]
581581 "RMenu" | "rmenu" => Ok ( enigo:: Key :: RMenu ) ,
582582 #[ cfg( target_os = "macos" ) ]
@@ -606,7 +606,7 @@ pub fn key_from_string(key: String) -> Result<enigo::Key> {
606606 "Tab" | "tab" => Ok ( enigo:: Key :: Tab ) ,
607607 #[ cfg( all( unix, not( target_os = "macos" ) ) ) ]
608608 "Undo" | "undo" => Ok ( enigo:: Key :: Undo ) ,
609- "UpArrow" | "uparrow" => Ok ( enigo:: Key :: UpArrow ) ,
609+ "UpArrow" | "uparrow" | "ArrowUp" | "arrowup" => Ok ( enigo:: Key :: UpArrow ) ,
610610 #[ cfg( target_os = "macos" ) ]
611611 "VidMirror" | "vidmirror" => Ok ( enigo:: Key :: VidMirror ) ,
612612 "VolumeDown" | "volumedown" => Ok ( enigo:: Key :: VolumeDown ) ,
0 commit comments