key codes

  • is there a list of key codes floating around somewhere?
    I want the key code for the apostrophe AKA single quote( ' ) key.

    jake
  • On Oct 24, 2004, at 11:42 PM, Jacob Chapa wrote:

    > is there a list of key codes floating around somewhere?
    > I want the key code for the apostrophe AKA single quote( ' ) key.

    http://developer.apple.com/documentation/mac/Text/Text
    -571.html#HEADING571-0

    the key code for a single-quote key with the US keyboard layout on an
    ANSI keyboard is 39.

    katsura
  • > is there a list of key codes floating around somewhere?
    > I want the key code for the apostrophe AKA single quote( ' ) key.

    You can also use this little dev tool that I've written for my own
    purposes. It will quit when you close its window.

    I'm curious if the attached sit archive is small enough to make it into
    the list. IIRC, there was a size limit, right?

    Best regards,

    Peter Maurer.
  • At 1:42 Uhr -0500 25.10.2004, Jacob Chapa wrote:
    > is there a list of key codes floating around somewhere?
    > I want the key code for the apostrophe AKA single quote( ' ) key.

      There isn't one. Key codes correspond to the physical location of
    keys on your keybard. Since keyboards have slightly different
    arrangements for different languages (so touch-typists can more
    easily reach more common characters, and so language-specific chars
    like accents and umlauts are available without having to
    control-shift-alt-u or whatever), key codes will differ from computer
    to computer.

      Also, character code -> key code is not a one-to-one mapping. E.g.
    if you want a "5"'s key code, how is the computer supposed to know
    whether to send the key code for the five above the characters, or
    for the one on the number pad?
    --
    Cheers,
    M. Uli Kusterer
    ------------------------------------------------------------
            "The Witnesses of TeachText are everywhere..."
                        http://www.zathras.de
  • > From: Hidetomo Katsura <katsura...>
    > Date: October 24, 2004 11:54:28 PM PDT
    > To: Jacob Chapa <jake...>
    > Cc: <cocoa-dev...>
    > Subject: Re: key codes
    >
    >
    > On Oct 24, 2004, at 11:42 PM, Jacob Chapa wrote:
    >
    >> is there a list of key codes floating around somewhere?
    >> I want the key code for the apostrophe AKA single quote( ' ) key.
    >
    > http://developer.apple.com/documentation/mac/Text/Text
    > -571.html#HEADING571-0
    >
    > the key code for a single-quote key with the US keyboard layout on an
    > ANSI keyboard is 39.
    >
    > katsura
    >

    and

    > From: Peter Maurer <mail...>
    > Date: October 25, 2004 12:29:26 AM PDT
    > To: Jacob Chapa <jake...>
    > Cc: CocoaDev <cocoa-dev...>
    > Subject: Re: key codes
    >
    >
    >> is there a list of key codes floating around somewhere?
    >> I want the key code for the apostrophe AKA single quote( ' ) key.
    >
    > You can also use this little dev tool that I've written for my own
    > purposes. It will quit when you close its window.
    >
    > I'm curious if the attached sit archive is small enough to make it
    > into the list. IIRC, there was a size limit, right?
    >
    > Best regards,
    >
    > Peter Maurer.
    >>

    It's already built into X-Code (1.5 anyway)

    Main menu
    Format -> Font -> Show Fonts  will give you the Font palette. At the
    lower left there's the little contextual menu item. Hold it down and
    select Characters...

    You can get the info on any character in the entire Unicode set. If you
    select a character and hold the cursor over it you'll get a hint with
    the Unicode Hex value (key code). For _'_ apostrophe, it's 27 (e.g. 39
    decimal). you get the Unicode and UTF8 values.
    It's worth exploring for all the CUTE stuff you can do, including
    characters to put into buttons as "icons".
    Of course you can "Insert" any character right into your XCode cursor
    location. I just put a chinese ideograph character into a document
    window's "stop" button for fun and games.

    Fred

    Fred Glover
    Machine Vision and Image Processing Engineering
    Visicon Inc
    www.visiconeng.com
    Los Gatos, CA
    408 354-0095
  • Sorry Peter,

    I didn't mean to rain on your parade. I like your KeyCaps app and will
    find it useful outside the XCode environment.
    I only meant to show that within XCode there's another nice tool.

    Fred

    On Oct 26, 2004, at 10:27 AM, Fred Glover wrote:

    >> From: Hidetomo Katsura <katsura...>
    >> Date: October 24, 2004 11:54:28 PM PDT
    >> To: Jacob Chapa <jake...>
    >> Cc: <cocoa-dev...>
    >> Subject: Re: key codes
    >>
    >>
    >> On Oct 24, 2004, at 11:42 PM, Jacob Chapa wrote:
    >>
    >>> is there a list of key codes floating around somewhere?
    >>> I want the key code for the apostrophe AKA single quote( ' ) key.
    >>
    >> http://developer.apple.com/documentation/mac/Text/Text
    >> -571.html#HEADING571-0
    >>
    >> the key code for a single-quote key with the US keyboard layout on an
    >> ANSI keyboard is 39.
    >>
    >> katsura
    >>
    >
    > and
    >
    >> From: Peter Maurer <mail...>
    >> Date: October 25, 2004 12:29:26 AM PDT
    >> To: Jacob Chapa <jake...>
    >> Cc: CocoaDev <cocoa-dev...>
    >> Subject: Re: key codes
    >>
    >>
    >>> is there a list of key codes floating around somewhere?
    >>> I want the key code for the apostrophe AKA single quote( ' ) key.
    >>
    >> You can also use this little dev tool that I've written for my own
    >> purposes. It will quit when you close its window.
    >>
    >> I'm curious if the attached sit archive is small enough to make it
    >> into the list. IIRC, there was a size limit, right?
    >>
    >> Best regards,
    >>
    >> Peter Maurer.
    >>
    > <Key Codes.app.sit>
    >
    > It's already built into X-Code (1.5 anyway)
    >
    > Main menu
    > Format -> Font -> Show Fonts  will give you the Font palette. At the
    > lower left there's the little contextual menu item. Hold it down and
    > select Characters...
    >
    > You can get the info on any character in the entire Unicode set. If
    > you select a character and hold the cursor over it you'll get a hint
    > with the Unicode Hex value (key code). For _'_ apostrophe, it's 27
    > (e.g. 39 decimal). you get the Unicode and UTF8 values.
    > It's worth exploring for all the CUTE stuff you can do, including
    > characters to put into buttons as "icons".
    > Of course you can "Insert" any character right into your XCode cursor
    > location. I just put a chinese ideograph character into a document
    > window's "stop" button for fun and games.
    >
    > Fred

    Fred Glover
    Machine Vision and Image Processing Engineering
    Visicon Inc
    www.visiconeng.com
    Los Gatos, CA
    408 354-0095
  • > I didn't mean to rain on your parade. I like your KeyCaps app and will
    > find it useful outside the XCode environment.
    > I only meant to show that within XCode there's another nice tool.

    At first, I didn't notice that Fred posted this message on the list,
    too. So here's my (initially private) response, for the sake of
    completeness:

    "Never mind. I wrote Key Codes a long time ago. And, BTW, if you're
    hunting for, say, F11's key code, then the character palette wouldn't
    be of much help, or would it?"

    And Fred has already replied to this message of mine. He said: "good
    point!!!" -- I hope it's OK to put that back on the list, Fred ;-)

    Cheers,

    Peter.

    > On Oct 26, 2004, at 10:27 AM, Fred Glover wrote:
    >
    >>>> is there a list of key codes floating around somewhere?
    >>>> I want the key code for the apostrophe AKA single quote( ' ) key.
    >>>
    >>> You can also use this little dev tool that I've written for my own
    >>> purposes. It will quit when you close its window.
    >>>
    >>> I'm curious if the attached sit archive is small enough to make it
    >>> into the list. IIRC, there was a size limit, right?
    >>>
    >>> Best regards,
    >>>
    >>> Peter Maurer.
    >>
    >> It's already built into X-Code (1.5 anyway)
    >>
    >> Main menu
    >> Format -> Font -> Show Fonts  will give you the Font palette. At the
    >> lower left there's the little contextual menu item. Hold it down and
    >> select Characters...
    >>
    >> You can get the info on any character in the entire Unicode set. If
    >> you select a character and hold the cursor over it you'll get a hint
    >> with the Unicode Hex value (key code). For _'_ apostrophe, it's 27
    >> (e.g. 39 decimal). you get the Unicode and UTF8 values.
    >> It's worth exploring for all the CUTE stuff you can do, including
    >> characters to put into buttons as "icons".
    >> Of course you can "Insert" any character right into your XCode cursor
    >> location. I just put a chinese ideograph character into a document
    >> window's "stop" button for fun and games.
    >>
    >> Fred
previous month october 2004 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Go to today