mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-12 15:26:00 +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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user