mirror of
https://github.com/bitwarden/mobile
synced 2025-12-22 03:03:46 +00:00
Focus input when cell tapped.
This commit is contained in:
@@ -37,7 +37,6 @@ namespace Bit.App.Pages
|
||||
|
||||
var nameCell = new FormEntryCell(AppResources.Name);
|
||||
nameCell.Entry.Text = folder.Name.Decrypt();
|
||||
nameCell.Tapped += NameCell_Tapped;
|
||||
|
||||
var deleteCell = new ExtendedTextCell { Text = AppResources.Delete, TextColor = Color.Red };
|
||||
deleteCell.Tapped += DeleteCell_Tapped;
|
||||
@@ -46,7 +45,6 @@ namespace Bit.App.Pages
|
||||
{
|
||||
Intent = TableIntent.Settings,
|
||||
EnableScrolling = false,
|
||||
EnableSelection = true,
|
||||
HasUnevenRows = true,
|
||||
VerticalOptions = LayoutOptions.Start,
|
||||
Root = new TableRoot
|
||||
@@ -107,15 +105,6 @@ namespace Bit.App.Pages
|
||||
}
|
||||
}
|
||||
|
||||
private void NameCell_Tapped(object sender, EventArgs e)
|
||||
{
|
||||
var cell = sender as FormEntryCell;
|
||||
if(cell != null)
|
||||
{
|
||||
cell.Entry.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
private async void DeleteCell_Tapped(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: Validate the delete operation. ex. Cannot delete a folder that has sites in it?
|
||||
|
||||
Reference in New Issue
Block a user