nvaccess/nvda

Backspace key does not work in chats of microsoft Teams in newest version

Opened this issue · 6 comments

Steps to reproduce:

  1. Start Microsoft Teams desktop app in the newest version
  2. Open a chat with a person or start a new thread in a channel.
  3. Type some text and make sure the cursor is at the very end of the text.
  4. Now try to delete the text using the backspace key.

Actual behavior:

Backspace has no effect and the NVDA log shows the following error listed in the NVDA logs section below.

Expected behavior:

The backspace key should simply delete the previous text.

NVDA logs, crash dumps and other attachments:

IO - inputCore.InputManager.executeGesture (07:54:59.383) - winInputHook (20320):
Input: kb(desktop):backspace
ERROR - scriptHandler.executeScript (07:54:59.397) - MainThread (17604):
error executing script: <bound method EditableText.script_caret_backspaceCharacter of <NVDAObjects.Dynamic_ChromiumUIAEditableTextWithAutoSelectDetectionUIA object at 0x087478B0>> with gesture 'Rücktaste'
Traceback (most recent call last):
File "scriptHandler.pyc", line 295, in executeScript
File "editableText.pyc", line 282, in script_caret_backspaceCharacter
File "editableText.pyc", line 264, in _backspaceScriptHelper
File "NVDAObjects\UIA\web.pyc", line 190, in move
File "NVDAObjects\UIA\web.pyc", line 181, in _collapsedMove
File "NVDAObjects\UIA\web.pyc", line 148, in _moveToEdgeOfReplacedContent
File "baseObject.pyc", line 41, in get
File "NVDAObjects\UIA\web.pyc", line 119, in _get_UIAElementAtStartWithReplacedContent
_ctypes.COMError: (-2147467259, 'Unbekannter Fehler', (None, None, None, 0, None))

System configuration

NVDA installed/portable/running from source:

installed

NVDA version:

2024.1

Windows version:

Windows 11

Name and version of other software in use when reproducing the issue:

Microsoft Teams (version not really known)

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes.

Have you tried any other versions of NVDA? If so, please report their behaviors.

no.

If NVDA add-ons are disabled, is your problem still occurring?

yes.

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

not known - executing it will need assistance from servicedesk and there is currently no other problem indicating the need of this action.

I am using new MS teams version 24102.2223.2870.9480.
I couldn't replicate this issue at my end!
@heiko-folkerts-msg-david could you please provide the version of MS team you are using?
you can find it in "Settings>about"

Hmm, are you using UIA for Chromium browsers in NVDA advanced settings? Not sure this is related but it might be the case that MS Teams uses this as well.

I cannot reproduce either.

Please try and run the COM registration fixing tool. This might fix it.

Or will this change have big impact on other apps?

I think it is good to have the default behavior in browsers, maybe you can create a profile for MS Teams in NVDA and adjust the UIA setting only for that profile.

Related to #15274