Skip to content

Commit

Permalink
fix: Expose password input fields on Windows (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny authored Feb 24, 2025
1 parent 0be21e6 commit 19514da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion platforms/windows/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ impl NodeWrapper<'_> {
self.0.supports_text_ranges()
}

fn is_password(&self) -> bool {
self.0.role() == Role::PasswordInput
}

pub(crate) fn enqueue_property_changes(
&self,
queue: &mut Vec<QueuedEvent>,
Expand Down Expand Up @@ -890,7 +894,8 @@ properties! {
(AutomationId, automation_id),
(ClassName, class_name),
(Orientation, orientation),
(IsRequiredForForm, is_required)
(IsRequiredForForm, is_required),
(IsPassword, is_password)
}

patterns! {
Expand Down

0 comments on commit 19514da

Please sign in to comment.