Comment 10 for bug 30562

Revision history for this message
parren (peter-arrenbrecht) wrote : Re: Acer € and $ + special laptop keys

I have a similar problem, but I don't get any reaction from pressing the key euro and dollar keys. Neither showkey -u nor xev nor the GNOME keyboard shortcut mapper nor /var/log/acpid shows anything. So it seems I cannot even use xmodmap to do anything with these keys (which I would very much like to as the are where Home and End should be, really).

System info is:

$ sudo dmidecode -s system-manufacturer
Acer, inc.
$ sudo dmidecode -s system-product-name
TravelMate 8200
$ sudo dmidecode -s system-version
Not Applicable

Under Windows I am able to trap the keys using a keyboard hook DLL with the following code:

long __w64 __stdcall KeyboardHook( int code, WPARAM wParam, LPARAM lParam )

{

 if (HC_ACTION == code) {

  LPARAM scan = (lParam & 0x7F8000) >> 16;

  if (0 != scan) {

   // not simulated

   switch (lParam) {

    case 20119553: // euro symbol

     return simulate( VK_HOME, lParam );

    case 20185089: // dollar symbol

     return simulate( VK_END, lParam );

   }

  }

 }

 return CallNextHookEx( hookHnd, code, wParam, lParam );

}