KeyboardKit / KeyboardKitPro

KeyboardKit Pro helps you create custom keyboards for iOS and iPadOS.
https://keyboardkit.com
Other
103 stars 8 forks source link

Keyboard casing issue `uppercased` acts like `capsLocked` in text proxies #1

Closed amirshane closed 2 years ago

amirshane commented 2 years ago

I am trying to add additional text fields to a custom keyboard for things like a search bar but am running into an issue with casing. The search text field defaults to uppercased but it capitalizes all the letters like capsLocked instead of just the first. The ordinary double-tap capsLocked works fine and so does the lowerCased. This issue only persists in added text proxies so I believe that is where it lies. I've attached a video below.

https://user-images.githubusercontent.com/42124305/125204741-c676d300-e24c-11eb-8827-535843a7fda4.mp4

Looking in KeyboardCasing where the keyboard cases are defined I see the following comment: ".uppercased should conform to the text proxy's autocapitalization type." I think the issue might be here, but I'm not sure how exactly to access the text proxy's autocapitalization type or how to set/override it. For reference, I am using the text proxy from: https://gist.github.com/wearhere/f46ab9d837acaeaabfa86a813c44ad25.

amirshane commented 2 years ago

Apologies, meant to put this issue in KeyboardKit, just put it there, closing now.

danielsaidi commented 2 years ago

Great, thank you!