1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

fixed pressing numpad keys with numpad on acting both as moves and quick-keys

This commit is contained in:
Zeno Rogue 2024-04-07 23:35:33 +02:00
parent 32d329d81e
commit 92603dddcc

View File

@ -524,7 +524,7 @@ EX void handleKeyNormal(int sym, int uni) {
if(!(uni >= 'A' && uni <= 'Z') && DEFAULTCONTROL && !game_keys_scroll) {
for(int i=0; i<8; i++)
if(among(sym, keys_vi[i], keys_wasd[i], keys_numpad[i]))
if(among(sym, keys_vi[i], keys_wasd[i], (uni >= '0' && uni <= '9') ? -1 : keys_numpad[i]))
movepckeydir(i);
}