mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
devdraw: make ctrl generate 1-click while mouse down (#119)
This makes 2-1 chords possible with touchpad on a mac laptop.
This commit is contained in:
parent
931c590611
commit
a9e66ffa4e
1 changed files with 2 additions and 0 deletions
|
@ -927,6 +927,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)
|
||||
|
|
Loading…
Reference in a new issue