1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 16:53:26 +00:00

select focus inputs in table cells. load folders into picker cell.

This commit is contained in:
Kyle Spearrin
2016-07-12 23:55:52 -04:00
parent 4723e6a101
commit ae79eb6a96
5 changed files with 58 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ using UIKit;
namespace Bit.iOS.Core.Views
{
public class FormEntryTableViewCell : UITableViewCell
public class FormEntryTableViewCell : UITableViewCell, ISelectable
{
public FormEntryTableViewCell(
string labelName = null,
@@ -107,5 +107,17 @@ namespace Bit.iOS.Core.Views
public UILabel Label { get; set; }
public UITextField TextField { get; set; }
public UITextView TextView { get; set; }
public void Select()
{
if(TextView != null)
{
TextView.BecomeFirstResponder();
}
else if(TextField != null)
{
TextField.BecomeFirstResponder();
}
}
}
}