illyabusigin / CYRKeyboardButton

A drop-in keyboard button that mimics the look, feel, and functionality of the native iOS keyboard buttons
MIT License
351 stars 46 forks source link

UIKeyInput instead of UITextInput #5

Closed eliotfowler closed 9 years ago

eliotfowler commented 10 years ago

The delegate should need to support only UIKeyInput as UITextInput requires a lot of unnecessary methods.

illyabusigin commented 9 years ago

Hi Eliot!

The reason I opted for UITextInput vs. UIKeyInput is because UITextField doesn't have a selected text range. When calling insertText: with CYRKeyBoardButton I wanted to be able to check the delegate for the specified range. If you have a better solution to accomplish the above while using UIKeyInput I'm all ears ;).