Skip to content

Commit

Permalink
Allow usage of keyboard with and without left button in one app #82
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed May 26, 2018
1 parent f4435ef commit b6c14a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-native-keyboard",
"version": "1.5.3",
"version": "1.5.4",
"description": "This plugin aims to solve common keyboard problems encountered with Cordova / PhoneGap apps. The messenger component (see screenshots) is ready for production, but this plugin will have more tricks up its sleeve. I'll document those once they're ready for primetime as well.",
"cordova": {
"id": "cordova-plugin-native-keyboard",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-native-keyboard"
version="1.5.3">
version="1.5.4">

<name>Native Keyboard</name>

Expand Down
4 changes: 4 additions & 0 deletions src/ios/NKSLKTextViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ - (void) configureMessengerWithCommand:(CDVInvokedUrlCommand*)command andCommand
// 'text' type is not yet supported, see https://github.com/slackhq/SlackTextViewController/issues/457
NSLog(@"On iOS type 'text' is not supported (yet) on the left button.");
}
} else {
// reset, so if you want an instance with and without a left button this will make that scenario work
[self.leftButton setImage:nil forState:UIControlStateNormal];
[self.leftButton setTitle:@"" forState:UIControlStateNormal];
}

// change the label and color of the send button
Expand Down

0 comments on commit b6c14a2

Please sign in to comment.