0

is it possible to control the cursor movement through custom keyboard

I have two traverse buttons on keyboard on clicking them cursor moves in the respective direction.

Is it possible to implement ?

Please guide !

Queshi Zakir
  • 464
  • 1
  • 6
  • 15

1 Answers1

1

Yes this is completely possible if i understand correctly. You just need increment or reduct the offset value of the UITextDocumentProxy method.

- (void)adjustTextPositionByCharacterOffset:(NSInteger)offset;

e.g.

-(void) incrementButtonPressed:(UIButton*)sender
{
        [self.textDocumentProxy adjustTextPositionByCharacterOffset:1];
}
TomTom
  • 899
  • 8
  • 16