Re: Fwd: Alt key on Mac?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Alt key on Mac?

Steven Kelly

We use the X11 VM (on 7.4.1), and I guess the translations work differently there. We’re just starting to look at the native VM again in 7.7.1.

 

Given that changing the VM is a bit tricky, I suppose you could either try a different modifier (as you suggested in an off-list email), or then build a mapping back from TM to Alt+2 etc. by pressing each key. As Michael said, that mapping may will be specific to the settings on your Mac, but maybe that’s enough for you.

 

Steve

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Michael Lucas-Smith
Sent: 31. maaliskuuta 2011 4:41
To: David Shaffer
Cc: [hidden email]
Subject: Re: [vwnc] Fwd: Alt key on Mac?

 

I think you'd have to intercept a different keyboard API at the VM level. The keyboard event that comes in to Cocoa is pre-modified from the alt-key based on the keyboard chosen in the internationalization settings on the mac. When see ™ we don't see Alt+2.

 

On Mar 30, 2011, at 6:13 PM, David Shaffer wrote:



 

 

Begin forwarded message:



From: David Shaffer <[hidden email]>

Date: March 30, 2011 9:11:44 PM EDT

To: "Steven Kelly" <[hidden email]>

Subject: Re: [vwnc] Alt key on Mac?

 


On Mar 30, 2011, at 12:01 PM, Steven Kelly wrote:


isMenuItem: aMenuItem matchForShortcutKeyKeyboardEvent: aKeyboardEvent

          "Answer whether aMenuItem corresponds to the given keyboard event as short cut key considering the receiver's criteria for matching.

          This needs to be overridden in the appropriate subclasses to determine the appropriate interpretation of the keyboardEvent."

 


Thanks.  I tried it but it didn't work.  I put a breakpoint right before (aKeyboardEvent hasKeyValue: ...) and I can see it being executed if I press the option key but while the variable theCharacterOrSymbol is $2, for example, my keyboard is sending $™  (TM).  Very close though, thanks for the tip...maybe I can get it working with one of the other keyboard modifiers?

David

 

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc