podkovyrin/APNumberPad

Suggestion: Use UIKeyInput instead of UITextInput

Closed this issue · 2 comments

Right now, the keyboard is taking on a lot of the logic of how the control should respond to a keypress. This isn't really the job of the keyboard - instead I think the keyboard should require conformance to UIKeyInput from the targeted view and just send it single key events using the insertText and deleteBackward methods.

Oh interesting - I see you're already using those methods. I'm going to create a quick PR that loosens the type constraint for the inputView without losing the delegate functionality since I'm not sure how you're using it currently.

1.2.4 fixes the issue