mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-01 21:44:30 +00:00
when you press e.g. 'b' to enter a text dialog, 'b' is not sent to this dialog
This commit is contained in:
1 parent
9268143240
commit
692399ac45
2 files changed
+7
-1
No files matched your search
@@ -995,10 +995,12 @@ EX namespace dialog {
|
||||
EX void handle_actions(int &sym, int &uni) {
|
||||
if(key_actions.count(uni)) {
|
||||
key_actions[uni]();
|
||||
if(uni >= ' ' && uni <= 127) ignore_textinput = true;
|
||||
sym = uni = 0;
|
||||
return;
|
||||
}
|
||||
if(key_actions.count(sym)) {
|
||||
if(sym >= ' ' && sym <= 127) ignore_textinput = true;
|
||||
key_actions[sym]();
|
||||
sym = uni = 0;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user