mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Use Cmd instead of the (broken) Alt keys on Mac.
This commit is contained in:
parent
19cd2b04fd
commit
16625f0e7f
1 changed files with 5 additions and 0 deletions
|
@ -1212,6 +1212,11 @@ bool Sys_AltDown(){
|
|||
|
||||
XQueryKeymap( GDK_DISPLAY(), keys );
|
||||
|
||||
#if defined ( __APPLE__ )
|
||||
#define XK_Alt_L XK_Meta_L
|
||||
#define XK_Alt_R XK_Meta_R
|
||||
#endif
|
||||
|
||||
x = XKeysymToKeycode( GDK_DISPLAY(), XK_Alt_L );
|
||||
if ( keys[x / 8] & ( 1 << ( x % 8 ) ) ) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue