mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +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;
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user