Cheats window: Allow clicking money text to enter quantity

This commit is contained in:
Jonathan G Rennison
2021-03-21 12:52:01 +00:00
parent abf8505c69
commit fa2f3ed104
4 changed files with 14 additions and 0 deletions

View File

@@ -490,6 +490,7 @@ bool IsValidChar(WChar key, CharSetFilter afilter)
switch (afilter) {
case CS_ALPHANUMERAL: return IsPrintable(key);
case CS_NUMERAL: return (key >= '0' && key <= '9');
case CS_NUMERAL_SIGNED: return (key >= '0' && key <= '9') || key == '-';
#if !defined(STRGEN) && !defined(SETTINGSGEN)
case CS_NUMERAL_DECIMAL: return (key >= '0' && key <= '9') || key == '.' || key == '-' || key == GetDecimalSeparatorChar();
#else