diff --git a/addon/appModules/notepad++/editWindow.py b/addon/appModules/notepad++/editWindow.py index a95bfe6..c5331fe 100755 --- a/addon/appModules/notepad++/editWindow.py +++ b/addon/appModules/notepad++/editWindow.py @@ -12,7 +12,6 @@ except ImportError: from NVDAObjects.behaviors import EditableTextWithAutoSelectDetection as EditWindowBaseCls from NVDAObjects.behaviors import EditableTextWithSuggestions -from NVDAObjects.inputComposition import InputCompositionTextInfo from queueHandler import registerGeneratorObject import speech import textInfos @@ -26,13 +25,6 @@ addonHandler.initTranslation() -def _hasActiveInputComposition(obj): - """Return True when NVDA has current IME composition text for this object.""" - if getattr(obj, "isReading", False): - return bool(getattr(obj, "readingString", "")) - return bool(getattr(obj, "compositionString", "")) - - class EditWindow(EditWindowBaseCls, EditableTextWithSuggestions): """An edit window that implements all of the scripts on the edit field for Notepad++""" @@ -55,11 +47,6 @@ def initOverlayClass(self): # Nuke it. self.name = "" - def _get_TextInfo(self): - if _hasActiveInputComposition(self): - return InputCompositionTextInfo - return super(EditWindow, self).TextInfo - def script_goToMatchingBrace(self, gesture): gesture.send() info = self.makeTextInfo(textInfos.POSITION_CARET).copy()