octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.37k stars 961 forks source link

Add key - XF86HomePage #684

Open fatlard1993 opened 3 years ago

fatlard1993 commented 3 years ago

Expected Behavior

A new key is available XF86HomePage

Current Behavior

A separate custom keyboard shortcut must be configured on the host system

Context

I use this for a media pc controller and it would be great to have the browser home key available

Your Environment

JonasMatos0 commented 3 years ago

Hi, @fatlard1993 I might be wrong, but just took a look on the code and I see robot.keyTap("home") being translated into XKHome which is #define XF86XKHomePage 0x1008FF18 / Display user's home page /

https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h

Is XF86HomePage you mentioned a different key, which is not mapped on XF86keysym.h ?