fix: fix accessibility for dynamic generated form.
This commit is contained in:
@@ -26,6 +26,24 @@ public class FormAccessibilityTests
|
||||
Assert.False(form.NameBox.IsFocused);
|
||||
Assert.True(form.EmailBox.IsFocused);
|
||||
}
|
||||
|
||||
[AvaloniaFact]
|
||||
public void Static_Form_With_FormItem_Accessible()
|
||||
{
|
||||
var window = new Window();
|
||||
var form = new StaticForm();
|
||||
window.Content = form;
|
||||
window.Show();
|
||||
|
||||
Assert.False(form.NameBox.IsFocused);
|
||||
Assert.False(form.EmailBox.IsFocused);
|
||||
window.KeyPressQwerty(PhysicalKey.N, RawInputModifiers.Alt);
|
||||
Assert.True(form.NameBox.IsFocused);
|
||||
Assert.False(form.EmailBox.IsFocused);
|
||||
window.KeyPressQwerty(PhysicalKey.E, RawInputModifiers.Alt);
|
||||
Assert.False(form.NameBox.IsFocused);
|
||||
Assert.True(form.EmailBox.IsFocused);
|
||||
}
|
||||
|
||||
[AvaloniaFact]
|
||||
public void Dynamic_Form_Inner_Control_Accessible()
|
||||
|
||||
Reference in New Issue
Block a user