mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-26 11:21:08 +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 );
|
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 );
|
x = XKeysymToKeycode( GDK_DISPLAY(), XK_Alt_L );
|
||||||
if ( keys[x / 8] & ( 1 << ( x % 8 ) ) ) {
|
if ( keys[x / 8] & ( 1 << ( x % 8 ) ) ) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue