Skip to content

Commit 7a8a4c4

Browse files
authored
Merge bb74657 into 2392d13
2 parents 2392d13 + bb74657 commit 7a8a4c4

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

source/NVDAObjects/UIA/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,7 @@ def _get_keyboardShortcut(self):
15891589
UIAHandler.UIA_IsEnabledPropertyId,
15901590
UIAHandler.UIA_IsOffscreenPropertyId,
15911591
UIAHandler.UIA_AnnotationTypesPropertyId,
1592+
UIAHandler.UIA_DragIsGrabbedPropertyId,
15921593
}
15931594

15941595
def _get_states(self):
@@ -1667,6 +1668,13 @@ def _get_states(self):
16671668
if annotationTypes:
16681669
if UIAHandler.AnnotationType_Comment in annotationTypes:
16691670
states.add(controlTypes.State.HASCOMMENT)
1671+
# Drag "is grabbed" property was added in Windows 8.
1672+
try:
1673+
isGrabbed = self._getUIACacheablePropertyValue(UIAHandler.UIA_DragIsGrabbedPropertyId)
1674+
except COMError:
1675+
isGrabbed = False
1676+
if isGrabbed:
1677+
states.add(controlTypes.State.DRAGGING)
16701678
return states
16711679

16721680
def _getReadOnlyState(self) -> bool:

source/UIAHandler/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
UIA.UIA_Window_WindowOpenedEventId: "UIA_window_windowOpen",
210210
UIA.UIA_SystemAlertEventId: "UIA_systemAlert",
211211
UIA.UIA_LayoutInvalidatedEventId: "UIA_layoutInvalidated",
212+
UIA.UIA_Drag_DragStartEventId: "stateChange",
212213
}
213214

214215
localEventHandlerGroupUIAEventIds = set()

user_docs/en/changes.t2t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Note there are still known issues with Chrome and Edge. (#13254)
5757
-
5858
- NVDA will announce UIA item status property changes in places such as the Visual Studio 2022 create app packages dialog. (#13973)
5959
- Orientation state (landscape/portrait) changes are now correctly ignored when there is no change (e.g. monitor changes). (#14035)
60+
- NVDA will announce dragging state when a UI Automation control is about to be dragged via mouse or keyboard, notably when rearranging tiles in Windows 10 start menu. (#14081)
6061
-
6162

6263

0 commit comments

Comments
 (0)