Skip to content

Commit

Permalink
Windows 11 emoji panel: replace regular exitable text with NVDAobject…
Browse files Browse the repository at this point in the history
…s.UIA.XamlEditableText when removin editable field support from emoji panel. Re nvaccess#15836.

Regression introduced with nvaccess#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.
  • Loading branch information
josephsl committed Nov 27, 2023
1 parent dd8a44c commit a3c315d
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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):
Expand Down Expand Up @@ -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)

0 comments on commit a3c315d

Please sign in to comment.