aboutsummaryrefslogtreecommitdiff
path: root/src/Chelleport/Control.hs
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-12-26 21:48:01 +0530
committerAkshay Nair <phenax5@gmail.com>2024-12-26 21:48:01 +0530
commit2819868eb398ebe7da0e59391367e5825f8fe2c5 (patch)
tree7c684f23487cc39132b8099205791ef3f9a1bad1 /src/Chelleport/Control.hs
parent7dfa0f2866ea6d3441c6c343d841e969aa2ea77d (diff)
downloadchelleport-2819868eb398ebe7da0e59391367e5825f8fe2c5.tar.gz
chelleport-2819868eb398ebe7da0e59391367e5825f8fe2c5.zip
Minor refactoring
Diffstat (limited to 'src/Chelleport/Control.hs')
-rw-r--r--src/Chelleport/Control.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Chelleport/Control.hs b/src/Chelleport/Control.hs
index e7bd418..a7c475f 100644
--- a/src/Chelleport/Control.hs
+++ b/src/Chelleport/Control.hs
@@ -1,6 +1,6 @@
module Chelleport.Control where
-import Chelleport.KeySequence (isKeycodeDigit, isValidKey)
+import Chelleport.KeySequence (isAlphabetic, isKeycodeDigit)
import Chelleport.Types
import Chelleport.Utils
import Control.Concurrent (threadDelay)
@@ -91,8 +91,8 @@ shift ev = SDL.keyModifierLeftShift (keyModifier ev) || SDL.keyModifierRightShif
anyDigit :: SDL.KeyboardEventData -> Bool
anyDigit = isKeycodeDigit . eventToKeycode
-anyAlphanumeric :: SDL.KeyboardEventData -> Bool
-anyAlphanumeric = isValidKey . eventToKeycode
+anyAlphabetic :: SDL.KeyboardEventData -> Bool
+anyAlphabetic = isAlphabetic . eventToKeycode
hjklDirection :: Char -> Direction
hjklDirection = \case