1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed dialogs to consider uni first (thus it works correctly if both x and shift+x are bound with add_action

This commit is contained in:
Zeno Rogue 2018-09-10 16:42:35 +02:00
parent bf97d28fb2
commit 796b03a81c

View File

@ -446,13 +446,13 @@ namespace dialog {
highlight_text = items[i].body;
uni = sym = 0;
}
if(key_actions.count(sym)) {
key_actions[sym]();
if(key_actions.count(uni)) {
key_actions[uni]();
sym = uni = 0;
return;
}
if(key_actions.count(uni)) {
key_actions[uni]();
if(key_actions.count(sym)) {
key_actions[sym]();
sym = uni = 0;
return;
}