Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Input from Character Palette
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Input from Character Palette



I guess I was a bit unclear. I do have handlers for both kTextInputUnicodeForKeyEvent,
and kTextInputUpdateActiveInputArea on the WINDOW. The problem only occur when
I do not have any edit control (with it's own handlers). I need to initiate an editing session (and create an edit control) of the selected cell when the user start typing. This works fine when the input method is a keyboard, (and some japanese input methods), but if the user clicks on a character in the character palette, I do not get any of these events to the WINDOW handler.
So my question is: Are there any other events which I should look for to be able to determine which
unicode char the user d.clicked in the character palette. Should not all input methods provide a similar set of events under identical circumstances, so that we do not need different handling of unicode data from different input methods ?


Johan

>You've almost answered your own question :-)

>You need to add handlers for kTextInputUnicodeForKeyEvent and
>kTextInputUpdateActiveInputArea to your spreadsheet control.

>Jerry


On Dec 2, 2005, at 2:01 PM, email@hidden wrote:


I have a situation where a spreadsheet cell is selected, but there
is no editing session (control with keyboard focus).  Identical to
starting such a session in Excel, typing any "glyph" generating key
should start the session.  If the keyboard is used, I get the
appropriate "unicodeforkeyevent" event to the handler installed on
the window.  However, I do not get this event if e.g., double
clicking a character in the character palette (I only get
unicodeforkeyevent from the character palette after a unicode
control is present).  Hence my question is: Which event should I
look for to get the appropriate Unicode from a character palette
(or any non-keyboard input method) to place in a  "to be created"
text edit control ?

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.