UIA: incorrect move to previous word #10782

Closed
opened 2026-01-31 02:30:10 +00:00 by claunia · 5 comments
Owner

Originally created by @codeofdusk on GitHub (Sep 25, 2020).

Originally assigned to: @carlos-zamora on GitHub.

Since #7677 was merged:

In the NVDA Python console (NVDA+control+z):

Word

>>> # In a Word document (accessed VIA UIA, positioned on the start of the text "My name is Carlos"):
>>> ti=nav.makeTextInfo("caret")
>>> ti.expand("word")
>>> ti.text
'My '
>>> ti.collapse() # Make a degenerate range (move end to start)
>>> ti.move("word", 1)
1
>>> ti.expand("word")
>>> ti.text
'name '
>>> ti.collapse()
>>> ti.move("word", -1)
-1
>>> ti.expand("character")
>>> ti.text
'M' # GOOD

conhost

>>> # Now, in Conhost
>>> ti=nav.makeTextInfo("caret")
>>> ti.expand("word")
>>> ti.text
'C:\\Users\\codeofdusk>My '
>>> ti.collapse() # Make a degenerate range (move end to start)
>>> ti.move("word", 1)
1
>>> ti.expand("word")
>>> ti.text
'name '
>>> ti.collapse()
>>> ti.move("word", -1)
-1
>>> ti.expand("character")
>>> ti.text
' ' # BAD

Cc @carlos-zamora.

Originally created by @codeofdusk on GitHub (Sep 25, 2020). Originally assigned to: @carlos-zamora on GitHub. Since #7677 was merged: In the NVDA Python console (NVDA+control+z): ### Word ```python console >>> # In a Word document (accessed VIA UIA, positioned on the start of the text "My name is Carlos"): >>> ti=nav.makeTextInfo("caret") >>> ti.expand("word") >>> ti.text 'My ' >>> ti.collapse() # Make a degenerate range (move end to start) >>> ti.move("word", 1) 1 >>> ti.expand("word") >>> ti.text 'name ' >>> ti.collapse() >>> ti.move("word", -1) -1 >>> ti.expand("character") >>> ti.text 'M' # GOOD ``` ### conhost ```python console >>> # Now, in Conhost >>> ti=nav.makeTextInfo("caret") >>> ti.expand("word") >>> ti.text 'C:\\Users\\codeofdusk>My ' >>> ti.collapse() # Make a degenerate range (move end to start) >>> ti.move("word", 1) 1 >>> ti.expand("word") >>> ti.text 'name ' >>> ti.collapse() >>> ti.move("word", -1) -1 >>> ti.expand("character") >>> ti.text ' ' # BAD ``` Cc @carlos-zamora.
Author
Owner

@codeofdusk commented on GitHub (Sep 25, 2020):

@DHowett Any chance this could be 21H1 instead?

@codeofdusk commented on GitHub (Sep 25, 2020): @DHowett Any chance this could be 21H1 instead?
Author
Owner

@DHowett commented on GitHub (Sep 25, 2020):

I split up your codeblock and introduced section headers because I got a bit confused when reading it.

@DHowett commented on GitHub (Sep 25, 2020): I split up your codeblock and introduced section headers because I got a bit confused when reading it.
Author
Owner

@DHowett commented on GitHub (Sep 25, 2020):

@codeofdusk I renamed the "21H1" milestone to "Windows vNext". They mean the same thing, but the new name doesn't use our internal version designators or make any guarantees about when it's going to be released. 😄

@DHowett commented on GitHub (Sep 25, 2020): @codeofdusk I renamed the "21H1" milestone to "Windows vNext". They mean the same thing, but the new name doesn't use our internal version designators or make any guarantees about when it's going to be released. :smile:
Author
Owner

@ghost commented on GitHub (Nov 11, 2020):

:tada:This issue was addressed in #7770, which has now been successfully released as Windows Terminal v1.4.3141.0.🎉

Handy links:

@ghost commented on GitHub (Nov 11, 2020): :tada:This issue was addressed in #7770, which has now been successfully released as `Windows Terminal v1.4.3141.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.4.3141.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Nov 11, 2020):

:tada:This issue was addressed in #7770, which has now been successfully released as Windows Terminal Preview v1.5.3142.0.🎉

Handy links:

@ghost commented on GitHub (Nov 11, 2020): :tada:This issue was addressed in #7770, which has now been successfully released as `Windows Terminal Preview v1.5.3142.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.5.3142.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10782