Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insertText: #2

Open
twestley opened this issue Feb 10, 2013 · 0 comments
Open

insertText: #2

twestley opened this issue Feb 10, 2013 · 0 comments
Assignees

Comments

@twestley
Copy link

I'm planning to use this but I've changed KOKeyboardRow insertText: as follows:

- (void)insertText:(NSString *)text
{
    if (textView.delegate && [textView.delegate
        respondsToSelector:@selector(textView:shouldChangeTextInRange:replacementText:)])
    {
        if ([textView.delegate textView:textView
            shouldChangeTextInRange:textView.selectedRange
                    replacementText:text])
        {
            [textView insertText:text];
        }
    }
    else
    {
        [textView insertText:text];
    }
}
@ghost ghost assigned adamhoracek Feb 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants