Hash key on Macbook Pro (OSX 10.11.6)

I’m trying to use an application on a Macbook Pro with a British keyboard, that has been written with SDL. That laptop has no direct key for the Hash (#) character, and I normally need to press ALT-3 to get that character. But it appears SDL is trapping the ALT key, so preventing me using that character - unless I cut-and-paste it from another Mac application.

Has this been noticed before, and is there a work-around please?

 Thank you

Is this happening for an SDL_TEXTINPUT event?

Jonny DOn Mon, Sep 19, 2016 at 1:20 PM, Peter Vince <peter_vince at yahoo.co.uk> wrote:

I’m trying to use an application on a Macbook Pro with a British keyboard,
that has been written with SDL. That laptop has no direct key for the Hash
(#) character, and I normally need to press ALT-3 to get that character.
But it appears SDL is trapping the ALT key, so preventing me using that
character - unless I cut-and-paste it from another Mac application.

Has this been noticed before, and is there a work-around please?

Thank you


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi Jonny. Thanks for your reply. Short answer - yes.

 Peter

Jonny D wrote:> Is this happening for an SDL_TEXTINPUT event?

Jonny D

On Mon, Sep 19, 2016 at 1:20 PM, Peter Vince <@Peter_Vince (@Peter_Vince)> wrote:

  I'm trying to use an application on a Macbook Pro with a British keyboard, that has been written with SDL. That laptop has no direct key for the Hash (#) character, and I normally need to press ALT-3 to get that character. But it appears SDL is trapping the ALT key, so preventing me using that character - unless I cut-and-paste it from another Mac application.

Has this been noticed before, and is there a work-around please?

Thank you


SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

Hi Jonny,

 Yes - this is the code segment being used:

   case SDL_TEXTINPUT:
        i = 0;
        while (ev.text.text[i] != '\0')
          putkey(ev.text.text[i++]) ;
        break ;

Regards,

 Peter

Jonny D wrote:> Is this happening for an SDL_TEXTINPUT event?

Jonny D

On Mon, Sep 19, 2016 at 1:20 PM, Peter Vince <@Peter_Vince (@Peter_Vince)> wrote:

  I'm trying to use an application on a Macbook Pro with a British keyboard, that has been written with SDL. That laptop has no direct key for the Hash (#) character, and I normally need to press ALT-3 to get that character. But it appears SDL is trapping the ALT key, so preventing me using that character - unless I cut-and-paste it from another Mac application.

Has this been noticed before, and is there a work-around please?

Thank you


SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)