diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-03-17 19:52:37 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-03-17 19:52:37 +0100 |
commit | cd099110f379d3a899b4dec03d3f955d68249fd8 (patch) | |
tree | 381ec56d40d495bc46917df56c1096695846b141 /src/cmd | |
parent | 9f34853f7c6b459fb473d75cb78372406f69d7b2 (diff) | |
download | plan9port-cd099110f379d3a899b4dec03d3f955d68249fd8.tar.gz plan9port-cd099110f379d3a899b4dec03d3f955d68249fd8.tar.bz2 plan9port-cd099110f379d3a899b4dec03d3f955d68249fd8.zip |
Make ctrl act as a button 1 for mouse chords
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/devdraw/cocoa-screen.m | 2 |
1 files changed, 2 insertions, 0 deletions
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) |