Start to generalise text input to "terminal signal" input

This commit is contained in:
2023-03-26 13:57:26 +01:00
parent cfb0a49059
commit 082ce9c9a1
39 changed files with 171 additions and 165 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ module Dodge.Update.Input.Text (
doTextInputOver',
) where
import Data.Either
import Data.Char
import Dodge.Data.Universe
import LensHelp
@@ -13,7 +14,7 @@ doTextInputOver p u = doTextInputOver' u p u
doTextInputOver' :: Universe -> ASetter' a String -> a -> a
doTextInputOver' u p x =
x & p %~ (++ map toUpper str)
x & p %~ (++ map toUpper (rights str))
& checkBackspace
where
str = u ^. uvWorld . input . textInput