Skip to content

Commit

Permalink
Make AltGr (right Alt) have the ALLEGRO_KEYMOD_ALTGR modifier on X11.
Browse files Browse the repository at this point in the history
For some unknown reason, it was mapped to ALLEGRO_KEYMOD_MENU which is a
different key altogether.
  • Loading branch information
SiegeLordEx authored and SiegeLord committed Oct 8, 2023
1 parent e3ad047 commit 7ba02f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x/xkeyboard.c
Original file line number Diff line number Diff line change
@@ -276,7 +276,7 @@ static int modifier_flags[8][3] = {
{ALLEGRO_KEYMOD_NUMLOCK, Mod2Mask, 1},
{ALLEGRO_KEYMOD_SCROLLLOCK, Mod3Mask, 1},
{ALLEGRO_KEYMOD_LWIN | ALLEGRO_KEYMOD_RWIN, Mod4Mask, 0}, /* Should we use only one? */
{ALLEGRO_KEYMOD_MENU, Mod5Mask, 0} /* AltGr */
{ALLEGRO_KEYMOD_ALTGR, Mod5Mask, 0} /* AltGr */
};

/* Table of key names. */

0 comments on commit 7ba02f2

Please sign in to comment.