X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=keys.c;h=3c09cf3563e5d841ac3c306e55dda7e92d844fa6;hb=2521205903a3cab3b36f3450485a266a4e86085f;hp=cb99dcad7c9938165754858cf24c4e2cc4bfe917;hpb=442772ff530cb93073f2ea7207de762ec74d34ce;p=xonotic%2Fdarkplaces.git diff --git a/keys.c b/keys.c index cb99dcad..3c09cf35 100644 --- a/keys.c +++ b/keys.c @@ -1528,6 +1528,11 @@ Key_Event (int key, int ascii, qboolean down) return; } + if (ascii == 0x80 && utf8_enable.integer) // pressing AltGr-5 (or AltGr-e) and for some reason we get windows-1252 encoding? + ascii = 0x20AC; // we want the Euro currency sign + // TODO find out which vid_ drivers do it and fix it there + // but catching U+0080 here is no loss as that char is not useful anyway + // get key binding bind = keybindings[key_bmap][key]; if (!bind)