From a3c315d545aabd69ef60886c178c89fe60e6890d Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Mon, 27 Nov 2023 01:28:36 -0700 Subject: [PATCH] Windows 11 emoji panel: replace regular exitable text with NVDAobjects.UIA.XamlEditableText when removin editable field support from emoji panel. Re #15836. Regression introduced with #14888: Windows 11 emoji panel items are not annonced when pressing arrow keys as XAML editable text overlay class is used to mark emoji search field. Therefore, remove the newly introduced XAML editable text class from overlay class chooser. --- ...ternal_composableshell_experiences_textinput_inputapp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py b/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py index b4aa424a5bc..0ad6e910006 100644 --- a/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py +++ b/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py @@ -19,8 +19,8 @@ import config import winVersion import controlTypes -from NVDAObjects.UIA import UIA -from NVDAObjects.behaviors import CandidateItem as CandidateItemBehavior, EditableTextWithAutoSelectDetection +from NVDAObjects.UIA import UIA, XamlEditableText +from NVDAObjects.behaviors import CandidateItem as CandidateItemBehavior class ImeCandidateUI(UIA): @@ -335,4 +335,4 @@ def chooseNVDAObjectOverlayClasses(self, obj, clsList): # However this means NVDA's own edit field scripts will override emoji panel commands. # Therefore remove text field movement commands so emoji panel commands can be used directly. elif obj.UIAAutomationId == "Windows.Shell.InputApp.FloatingSuggestionUI.DelegationTextBox": - clsList.remove(EditableTextWithAutoSelectDetection) + clsList.remove(XamlEditableText)