Terminal: UIA: incorrect move to previous word

Created on 25 Sep 2020  路  5Comments  路  Source: microsoft/terminal

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.

Area-Accessibility Issue-Bug Priority-1 Product-Conhost Product-Terminal Resolution-Fix-Committed

All 5 comments

@DHowett Any chance this could be 21H1 instead?

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

@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:

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

Handy links:

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

Handy links:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

privacyguy123 picture privacyguy123  路  131Comments

migueldeicaza picture migueldeicaza  路  58Comments

Ronkiro picture Ronkiro  路  65Comments

Paul-Weisser picture Paul-Weisser  路  71Comments

CobusKruger picture CobusKruger  路  60Comments