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

how can add CYRKeyboardButton on keyboard extension #14

Open
senjaliyavishal opened this issue Apr 27, 2016 · 3 comments
Open

how can add CYRKeyboardButton on keyboard extension #14

senjaliyavishal opened this issue Apr 27, 2016 · 3 comments

Comments

@senjaliyavishal
Copy link

-add CYRKeyboardButton on Custom keyboard extension.

  • CYRKeyboardButton not working with keyboard extension.
  • i think issue found on "keyboardButton.textInput = self.textView"; line.
  • i have bellow library like.....
    https://github.com/kulpreetchilana/Custom-iOS-Keyboards
    how can add CYRKyboardButton on PMCustomKeyboard.m file please help me.
  • please download Custom-iOS-Keyboards project and in this project found PMCustomKeyboard.m.
@khantthulinn
Copy link

It is working. I have already tried that. You can't use self.textView like that. Instead, create your own textfield (no need to be iboutlet, just UITextfield) and make sure delegate is set to your view. After that, add this one. It is super cool.

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
    [self sendText:string];  // actually this one. I write inside that func >>         [self.textDocumentProxy insertText:str];
    return NO;
}

@carloskekwa
Copy link

can u elaborate please?

@carloskekwa
Copy link

@khantthulinn can u elaborate please about your answer?

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

3 participants