Re: Modifier keys
Re: Modifier keys
- Subject: Re: Modifier keys
- From: Ondra Cada <email@hidden>
- Date: Wed, 14 Nov 2001 17:49:13 +0100
Dan,
>
>>>>> Dan Huntsinger (DH) wrote at Tue, 13 Nov 2001 23:00:35 -0800:
DH> My question is this: I have a button that I would like to perform one
DH> action when pressed, and another different action when pressed in
DH> combination with the Option key. For example, increment a text field
DH> value when pressed, but decrement the value when option-pressed.
Connect the button to an action, and check the modifier bits of the
currentEvent inside that action. AFAIK there is no way to do that directly in
IB (unless you write your own palette, which would contain basically the
aforementioned code, for that).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc