force capitalization in ucStrPrompt

This commit is contained in:
Jonathan Lamothe 2023-06-04 17:53:48 -04:00
parent a5679cb1fc
commit d55f7b1f50
2 changed files with 5 additions and 2 deletions

View File

@ -1,9 +1,12 @@
# Changelog for mtlstats
## current
- updated code to use brick instead of ncurses
- fixed autocapitalization
## 0.17.0
- updated code to use brick instead of ncurses
## 0.16.1
- Don't automatically start a new game on new season
## 0.16.0

View File

@ -127,7 +127,7 @@ ucStrPrompt
-- ^ The callback function for the result
-> Prompt
ucStrPrompt pStr act = (strPrompt pStr act)
{ promptProcessChar = \ch -> editContentsL %~ insertChar ch }
{ promptProcessChar = \ch -> editContentsL %~ insertChar (toUpper ch) }
-- | Creates a prompt which forces capitalization of input to
-- accomodate a player or goalie name