when you press e.g. 'b' to enter a text dialog, 'b' is not sent to this dialog

This commit is contained in:
Zeno Rogue committed 2026-01-29 14:25:02 +01:00
1 parent 9268143240
commit 692399ac45
2 files changed
+7 -1

No files matched your search

+2
View File
@@ -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;