From cd099110f379d3a899b4dec03d3f955d68249fd8 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Fri, 17 Mar 2017 19:52:37 +0100 Subject: Make ctrl act as a button 1 for mouse chords --- src/cmd/devdraw/cocoa-screen.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m index 7aebae21..3cc7ad22 100644 --- a/src/cmd/devdraw/cocoa-screen.m +++ b/src/cmd/devdraw/cocoa-screen.m @@ -922,6 +922,8 @@ getkeyboard(NSEvent *e) case NSFlagsChanged: if(in.mbuttons || in.kbuttons){ in.kbuttons = 0; + if(m & NSControlKeyMask) + in.kbuttons |= 1; if(m & NSAlternateKeyMask) in.kbuttons |= 2; if(m & NSCommandKeyMask) -- cgit v1.2.3