After a little Googling I just took a look at the source and did the simplest thing possible:
diff -r 1bd8b25173d5 src/cmd/devdraw/cocoa-screen.m
--- a/src/cmd/devdraw/cocoa-screen.m Tue Mar 19 14:36:50 2013 -0400
+++ b/src/cmd/devdraw/cocoa-screen.m Sat Apr 06 20:02:44 2013 +0200
@@ -847,7 +847,9 @@
case NSFlagsChanged:
if(in.mbuttons || in.kbuttons){
in.kbuttons = 0;
- if(m & NSAlternateKeyMask)
+ if(m & NSControlKeyMask)
+ in.kbuttons |= 1;
+ if(m & NSAlternateKeyMask)
in.kbuttons |= 2;
if(m & NSCommandKeyMask)
in.kbuttons |= 4;
This allows 2-1 chords by pressing Ctrl. How?
Select something as usual (the extra command for the 2-1 chord). Select the command with Alt pressed, to execute it. While holding Alt (and the trackpad button) press control. Release everything (does not really matter the order as far as I can tell.) Done. Or at least, it does what is expected in my machine in all the tries I have done so far. Hard to tell with such a small change :)
Oh, to get the changes rolling you should
cd $PLAN9/src/cmd/devdraw && mk install
I'm not sure if this change should be accepted in p9ports, neither do I know how to propose it or submit it. So if you think it could be useful, please let me know how it can be done.
Feels good to dig into the depths of some software you care and change it :)
Ruben