-
-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 't5049' into next. Incubates #5049
- Loading branch information
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#A part of NonVisual Desktop Access (NVDA) | ||
#Copyright (C) 2015 NV Access Limited | ||
#This file is covered by the GNU General Public License. | ||
#See the file COPYING for more details. | ||
|
||
import appModuleHandler | ||
import controlTypes | ||
import api | ||
import speech | ||
from NVDAObjects.UIA import UIA | ||
|
||
# Windows 10 Search UI suggestion list item | ||
class SuggestionListItem(UIA): | ||
|
||
role=controlTypes.ROLE_LISTITEM | ||
|
||
def event_UIA_elementSelected(self): | ||
focusControllerFor=api.getFocusObject().controllerFor | ||
if len(focusControllerFor)>0 and focusControllerFor[0].appModule is self.appModule: | ||
speech.cancelSpeech() | ||
api.setNavigatorObject(self) | ||
self.reportFocus() | ||
|
||
class AppModule(appModuleHandler.AppModule): | ||
|
||
def chooseNVDAObjectOverlayClasses(self,obj,clsList): | ||
if isinstance(obj,UIA) and obj.role==controlTypes.ROLE_DATAITEM and isinstance(obj.parent,UIA) and obj.parent.role==controlTypes.ROLE_LIST: | ||
clsList.insert(0,SuggestionListItem) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters