• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: key codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key codes


  • Subject: Re: key codes
  • From: Fred Glover <email@hidden>
  • Date: Tue, 26 Oct 2004 10:27:19 -0700

From: Hidetomo Katsura <email@hidden>
Date: October 24, 2004 11:54:28 PM PDT
To: Jacob Chapa <email@hidden>
Cc: email@hidden
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 <email@hidden>
Date: October 25, 2004 12:29:26 AM PDT
To: Jacob Chapa <email@hidden>
Cc: CocoaDev <email@hidden>
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.

Attachment: Key Codes.app.sit
Description: Macintosh archive


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 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: key codes
      • From: Fred Glover <email@hidden>
  • Prev by Date: Re: NSBox Colored Background
  • Next by Date: Copy/Pasting to MS Word
  • Previous by thread: Re: key codes
  • Next by thread: Re: key codes
  • Index(es):
    • Date
    • Thread