diff --git a/adapters/atspi-common/src/node.rs b/adapters/atspi-common/src/node.rs index f3223e530..a05062649 100644 --- a/adapters/atspi-common/src/node.rs +++ b/adapters/atspi-common/src/node.rs @@ -373,10 +373,12 @@ impl NodeWrapper<'_> { _ => {} } - if state.is_read_only_supported() && state.is_read_only_or_disabled() { - atspi_state.insert(State::ReadOnly); - } else { - atspi_state.insert(State::Enabled | State::Sensitive); + if !state.is_disabled() { + if state.is_read_only_supported() && state.is_read_only() { + atspi_state.insert(State::ReadOnly); + } else { + atspi_state.insert(State::Enabled | State::Sensitive); + } } if self.is_focused() {