1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-18 14:45:12 +00:00

extra chars in number dialog

This commit is contained in:
Zeno Rogue
2025-09-09 08:57:07 +02:00
parent e0b82be00f
commit 4e3ec3bb3a

View File

@@ -1466,7 +1466,7 @@ EX namespace dialog {
keyhandler = [this, &ne] (int sym, int uni) { keyhandler = [this, &ne] (int sym, int uni) {
handleNavigation(sym, uni); handleNavigation(sym, uni);
if((uni >= '0' && uni <= '9') || among(uni, '.', '+', '-', '*', '/', '^', '(', ')', ',', '|', 3) || (uni >= 'a' && uni <= 'z')) { if((uni >= '0' && uni <= '9') || among(uni, '.', '+', '-', '*', '/', '^', '(', ')', ',', '|', ' ', '=', 3) || (uni >= 'a' && uni <= 'z')) {
#if SDLVER == 1 #if SDLVER == 1
if(uni == 3) ne.s += "pi"; if(uni == 3) ne.s += "pi";
else ne.s += uni; else ne.s += uni;