Nicola Pero wrote:
>>
>>> I guess this question applies to EdenMath and Stepulator as well, but
>>> is there any way to receive input from the keyboard in
>>> Calculator.app?  Otherwise, it's pretty tiresome to mouse around to
>>> enter every number and operation.
>>>
>>
>> You'd need to implement/override the keyDown: method
> 
> Calculator.app used to use key equivalents for that, as in
> 
> [button setKeyEquivalent: @"1"];
> 
> I know this used to work XXX years ago: pressing '1' would be equivalent
> to pushing the '1' button :-)
> 
> ... so if it doesn't work any longer, maybe key equivalents no longer
> work in the gui, or something has changed
> in the API and the Calculator.app code needs updating (or the way
> Calculator.app is using key equivalents
> is wrong) ?
> 

OK, I have fixed this, Calculator should now work again. There still is
one issue in the GNUstep code that I don't understand. When we get a key
down event that the window and its views cannot handle. It is send again
with the command modifier added to it. Why do we do this? Is this just a
hack to keep old code working or is this a permanent feature of GNUstep
and Cocoa?

Fred



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to