mirror of
https://github.com/bitwarden/mobile
synced 2025-12-27 21:53:57 +00:00
Focus input when cell tapped.
This commit is contained in:
@@ -25,9 +25,16 @@ namespace Bit.App.Controls
|
||||
|
||||
stackLayout.Children.Add(Editor);
|
||||
|
||||
Tapped += FormEditorCell_Tapped;
|
||||
|
||||
View = stackLayout;
|
||||
}
|
||||
|
||||
public ExtendedEditor Editor { get; private set; }
|
||||
|
||||
private void FormEditorCell_Tapped(object sender, EventArgs e)
|
||||
{
|
||||
Editor.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,6 +85,8 @@ namespace Bit.App.Controls
|
||||
formStackLayout.Children.Add(Entry);
|
||||
imageStackLayout.Children.Add(formStackLayout);
|
||||
|
||||
Tapped += FormEntryCell_Tapped;
|
||||
|
||||
View = imageStackLayout;
|
||||
}
|
||||
|
||||
@@ -95,5 +97,10 @@ namespace Bit.App.Controls
|
||||
{
|
||||
Entry.Focus();
|
||||
}
|
||||
|
||||
private void FormEntryCell_Tapped(object sender, EventArgs e)
|
||||
{
|
||||
Entry.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,17 @@ namespace Bit.App.Controls
|
||||
stackLayout.Children.Add(Label);
|
||||
stackLayout.Children.Add(Picker);
|
||||
|
||||
Tapped += FormPickerCell_Tapped;
|
||||
|
||||
View = stackLayout;
|
||||
}
|
||||
|
||||
public Label Label { get; private set; }
|
||||
public ExtendedPicker Picker { get; private set; }
|
||||
|
||||
private void FormPickerCell_Tapped(object sender, EventArgs e)
|
||||
{
|
||||
Picker.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user