mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
first responder debugging
This commit is contained in:
parent
aa98963fd9
commit
ea179a398b
|
@ -136,6 +136,18 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)becomeFirstResponder
|
||||
{
|
||||
DDLogDebug(@"%@ in %s", self.logTag, __PRETTY_FUNCTION__);
|
||||
return [super becomeFirstResponder];
|
||||
}
|
||||
|
||||
- (BOOL)resignFirstResponder
|
||||
{
|
||||
DDLogDebug(@"%@ in %s", self.logTag, __PRETTY_FUNCTION__);
|
||||
return [super resignFirstResponder];
|
||||
}
|
||||
|
||||
- (BOOL)pasteboardHasPossibleAttachment
|
||||
{
|
||||
// We don't want to load/convert images more than once so we
|
||||
|
@ -172,13 +184,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
|
||||
#pragma mark - UITextViewDelegate
|
||||
|
||||
- (void)textViewDidBeginEditing:(UITextView *)textView
|
||||
{
|
||||
// TODO: Is this necessary?
|
||||
|
||||
[textView becomeFirstResponder];
|
||||
}
|
||||
|
||||
- (void)textViewDidChange:(UITextView *)textView
|
||||
{
|
||||
OWSAssert(self.textViewToolbarDelegate);
|
||||
|
@ -188,11 +193,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[self.textViewToolbarDelegate textViewDidChange:self];
|
||||
}
|
||||
|
||||
- (void)textViewDidEndEditing:(UITextView *)textView
|
||||
{
|
||||
[textView resignFirstResponder];
|
||||
}
|
||||
|
||||
#pragma mark - Key Commands
|
||||
|
||||
- (nullable NSArray<UIKeyCommand *> *)keyCommands
|
||||
|
|
Loading…
Reference in a new issue