Reported by Q on 2012-08-07 04:40
This works as expected in standard edit boxes, For instance, if you begin typing a word, backspace to the first character and then completely rewrite the word, NVDA only reads the new word. By contrast, if you perform these same actions in the command prompt (cmd.exe), NVDA concatenates the deleted characters and those newly-typed, resulting in a scrambled mess being spoken when you finish the word.
Comment 1 by tspivey on 2012-08-08 05:56
I think this is caused by NVDAHelper.nvdaControllerInternal_typedCharacterNotify ignoring console windows, which also ignores backspace.
Changing the if statement to if ch == u'\x08' or focus.windowClassName!="ConsoleWindowClass" seems to work, if we assume backspace always deletes the previous character.
if ch == u'\x08' or focus.windowClassName!="ConsoleWindowClass"
Comment 2 by jteh on 2012-08-08 08:25
This trick should work for Windows 7 and later. However, Windows XP (not sure about Vista) doesn't send WM_CHAR for consoles, so it won't work there.
Comment 3 by jteh on 2012-08-10 00:08
Fixed in fecc47d.
Milestone changed from None to 2012.3