Skip to content

Commit 6814a7f

Browse files
author
dzenbot
committed
Tweaks minor stuff related to SLK custom keyboard notifications
1 parent e8333b6 commit 6814a7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Source/Additions/SLKUIConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define UI_IS_IOS8_AND_HIGHER ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0)
2525

2626
#define SLK_INPUT_ACCESSORY_DEBUG DEBUG && 0 // Renders a translucent red area representing the keyboard accessory view
27-
#define SLK_KEYBOARD_NOTIFICATION_DEBUG DEBUG && 1 // Logs every keyboard notification being sent
27+
#define SLK_KEYBOARD_NOTIFICATION_DEBUG DEBUG && 0 // Logs every keyboard notification being sent
2828

2929
static NSString *SLKTextViewControllerDomain = @"com.slack.TextViewController";
3030

Source/Classes/SLKTextViewController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ - (void)performRightAction
849849

850850
- (void)postKeyboarStatusNotification:(NSNotification *)notification
851851
{
852-
if (![self.textView isFirstResponder] || self.isExternalKeyboardDetected || self.isRotating) {
852+
if (self.isExternalKeyboardDetected || self.isRotating) {
853853
return;
854854
}
855855

@@ -1122,7 +1122,7 @@ - (void)didShowOrHideKeyboard:(NSNotification *)notification
11221122
}
11231123

11241124
SLKKeyboardStatus status = [self keyboardStatusForNotification:notification];
1125-
1125+
11261126
// Skips if it's the current status
11271127
if (self.keyboardStatus == status) {
11281128
return;
@@ -1185,7 +1185,7 @@ - (void)didPostCustomKeyboardNotification:(NSNotification *)notification
11851185
{
11861186
// Used for debug only
11871187
if ([notification.object isEqual:self.textView]) {
1188-
NSLog(@"didPostCustomKeyboardNotification : %@", notification);
1188+
NSLog(@"%@ didPostCustomKeyboardNotification : %@", NSStringFromClass([self class]), notification);
11891189
}
11901190
}
11911191

0 commit comments

Comments
 (0)