mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
fix alt on mac
This commit is contained in:
parent
dea58c42de
commit
e66de6b077
1 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,15 @@ xtoplan9latin1(XEvent *e)
|
|||
if(r < 0)
|
||||
return nil;
|
||||
if(alting){
|
||||
/*
|
||||
* Kludge for Mac's X11 3-button emulation.
|
||||
* It treats Command+Button as button 3, but also
|
||||
* ends up sending XK_Meta_L twice.
|
||||
*/
|
||||
if(r == Kalt){
|
||||
alting = 0;
|
||||
return nil;
|
||||
}
|
||||
k[nk++] = r;
|
||||
n = _latin1(k, nk);
|
||||
if(n > 0){
|
||||
|
|
Loading…
Reference in a new issue