From 93135768362f00f1bc8dd2700213be59aa4c82dd Mon Sep 17 00:00:00 2001 From: Keyang556 <65295310+keyang556@users.noreply.github.com> Date: Sat, 27 Jun 2026 22:55:55 +0800 Subject: [PATCH] Revert "InputCompositionFix (#39)" This reverts commit 94f6dc563c61518208a2981a1abe1b95f3ef0d8c. --- addon/appModules/notepad++/editWindow.py | 13 ------------- 1 file changed, 13 deletions(-) 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()