mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +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:
parent
bf97d28fb2
commit
796b03a81c
@ -446,13 +446,13 @@ namespace dialog {
|
|||||||
highlight_text = items[i].body;
|
highlight_text = items[i].body;
|
||||||
uni = sym = 0;
|
uni = sym = 0;
|
||||||
}
|
}
|
||||||
if(key_actions.count(sym)) {
|
if(key_actions.count(uni)) {
|
||||||
key_actions[sym]();
|
key_actions[uni]();
|
||||||
sym = uni = 0;
|
sym = uni = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(key_actions.count(uni)) {
|
if(key_actions.count(sym)) {
|
||||||
key_actions[uni]();
|
key_actions[sym]();
|
||||||
sym = uni = 0;
|
sym = uni = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user