Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit
Subject says it all. Just a small fix.
Alex.
Content-Type: text/plain Content-Description: makes anyModifierKeyPressed to use yellowButtonPressed Content-Disposition: inline; filename="MorphicEvent-anyModifierKeyPressed.st" Content-Transfer-Encoding: 7bit
'From Squeak 2.5 of August 6, 1999 [latest update: #1498] on 28 September 1999 at 8:08:03 am'!
!MorphicEvent methodsFor: 'keyboard' stamp: 'laza 9/28/1999 08:01'! anyModifierKeyPressed "ignore, however, the shift keys 'cause that's not REALLY a command key " ^ (self commandKeyPressed or: [self controlKeyPressed]) or: [self yellowButtonPressed]! !
'From Squeak 2.5 of August 6, 1999 [latest update: #1498] on 28 September 1999 at 8:16:14 am'!
!InputSensor methodsFor: 'modifier keys' stamp: 'laza 9/28/1999 08:16'! anyModifierKeyPressed "ignore, however, the shift keys 'cause that's not REALLY a command key"
^ ((self commandKeyPressed or: [self controlKeyPressed]) or: [self yellowButtonPressed])! !
Content-Type: text/plain; charset=us-ascii Content-Description: .signature Content-Transfer-Encoding: 7bit
On Tue, 28 Sep 1999, Alexander Lazarevic wrote:
Subject says it all. Just a small fix.
!MorphicEvent methodsFor: 'keyboard' stamp: 'laza 9/28/1999 08:01'! anyModifierKeyPressed "ignore, however, the shift keys 'cause that's not REALLY a command key " ^ (self commandKeyPressed or: [self controlKeyPressed]) or: [self yellowButtonPressed]! !
macOptionKeyPressed is only equivalent to yellowButtonPressed if is used to simulate the secondary mouse button (yellow button in Smalltalk terms). So anyModifierKeyPressed (which was not in the standard image?!) should be defined as
^ buttons anyMask: 16r70 "cmd | opt | ctrl"
/bert
"Bert" == Bert Freudenberg bert@isgnw.CS.Uni-Magdeburg.De writes:
Bert> anyModifierKeyPressed (which was not in the standard Bert> image?!) should be defined as
anyModifierKeyPressed was introduced with update 1483ListItemSelect-JLM. This morning I had a look at the updates and ran into the problem with macOptionKeyPressed. I just assumed that this call slipped through the query/replace process (changing macOptionKeyPressed into yellowButtonPressed). So I should have had a closer look at the methods. (Now that there is a MagnifierMorph I have tool to do so! :)
Alex.
squeak-dev@lists.squeakfoundation.org