Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/editableText.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# A part of NonVisual Desktop Access (NVDA)
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.
# Copyright (C) 2006-2020 NV Access Limited, Davy Kager, Julien Cochuyt
# Copyright (C) 2006-2021 NV Access Limited, Davy Kager, Julien Cochuyt

"""Common support for editable text.
@note: If you want editable text functionality for an NVDAObject,
Expand Down Expand Up @@ -260,7 +260,8 @@ def _backspaceScriptHelper(self,unit,gesture):
caretMoved,newInfo=self._hasCaretMoved(oldBookmark)
if not caretMoved:
return
if len(delChunk)>1:
delChunk = delChunk.replace("\r\n", "\n") # Occurs with at least with Scintilla
if len(delChunk) > 1:
speech.speakMessage(delChunk)
else:
speech.speakSpelling(delChunk)
Expand Down