Menu

#672 Alt Gr key doesn't work

Devel
closed-fixed
MS Win (21)
5
2005-01-03
2004-07-16
Anonymous
No

To access keyboard keys like \}][{ , I need to press
Alt Gr + those keys. But it doesn't work, the game just
says unkown command 'M-'.
BTW it works perfectly in nethack.
I have a swedish keyboard running win2000.

Discussion

  • J. Ali Harlow

    J. Ali Harlow - 2004-08-07

    Logged In: YES
    user_id=64456

    Please let us know which version of Slash'EM you are
    running, where you got the binary from and what options you
    are using (especially windowtype and altkeyhandler).

    Thanks.

     
  • Javier Fernandez-Sanguino Peña

    Logged In: YES
    user_id=404932

    Same happens to me using Slashem 0.0.7E6 under Windows XP
    with a Spanish keyboard. However, it does work fine with
    Slashem GTK.

    Alt Gr+3 generates 'Unknown command M-3'. Instead of showing
    the extended command menu. (In the spanish keyboard the '#'
    is generated with Alt Gr+3)

    Alg Gr+p shows up the 'Pray' command, so does Alt Gr+a
    (adjust) and other extended commands. However, Alt+a (or any
    combination for that matter) does not work.
    Windowtype is defined as 'MSWIN', altkeyhandler is 'default'

    When using GTK Slashem, however, Alt Gr+3 shows up the
    extended command menu. Alt Gr+p says 'There appears to be no
    shopkeeper here to receive your payment' so it looks like
    it's executing 'pay' instead of 'Pray'. Alt Gr+a executes
    'apply' instead of 'adjust'. Alt+a (not Alt Gr) will work,
    though, and executes 'adjust'.
    In this case Windowtype is 'proxy/gtk' and 'altkeyhandler'
    is 'default'.

    It looks like the definition of meta keys for both
    interfaces (native WIN and GTK) are different. The native
    WIN interface treats Alt Gr as the meta key (and thus will
    not allow me to introduce '#') whileas the GTK interface
    will treat Alt as the meta key.

     
  • J. Ali Harlow

    J. Ali Harlow - 2004-08-23

    Logged In: YES
    user_id=64456

    Thanks Javier. I can now see the problem using a German
    keyboard which uses Alt Gr+- for backslash. This works for
    the native MS-Windows GUI under NetHack, but fails as
    described under Slash'EM.

     
  • Asher Gemendor

    Asher Gemendor - 2004-11-26

    Logged In: YES
    user_id=993549

    I noticed similar effect. I could not use US-layout while playing
    slashem. It insisted using my national (Estonian) layout even
    when I switched windows keyboard to US layout.

    It seems that default keyboard handler does not support
    keyboard layout changes and uses default layout. Fortunately
    there alternate drivers and 'OPTIONS=altkeyhandler:nhraykey.
    dll' seems to work allright.

     
  • J. Ali Harlow

    J. Ali Harlow - 2005-01-03
    • assigned_to: nobody --> j_ali
     
  • J. Ali Harlow

    J. Ali Harlow - 2005-01-03
    • status: open --> closed-fixed
     

Log in to post a comment.