Skip to content

Commit 6cc0250

Browse files
authored
Merge 519e2bb into 021c13d
2 parents 021c13d + 519e2bb commit 6cc0250

5 files changed

Lines changed: 19 additions & 2 deletions

File tree

source/appModules/eclipse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import keyboardHandler
1616
from scriptHandler import script
1717

18+
category_title = "Eclipse"
19+
1820
class EclipseTextArea(EditableTextWithSuggestions, IAccessible):
1921

2022
def event_suggestionsClosed(self):
@@ -52,7 +54,8 @@ def script_closeAutocompleter(self, gesture):
5254
@script(
5355
# Translators: Input help mode message for the 'read documentation script
5456
description = _("Tries to read documentation for the selected autocompletion item."),
55-
gesture = "kb:nvda+d"
57+
gesture = "kb:nvda+d",
58+
category=category_title
5659
)
5760
def script_readDocumentation(self, gesture):
5861
rootDocumentationWindow = None

source/appModules/miranda32.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
from keyboardHandler import KeyboardInputGesture
2323
import watchdog
2424

25+
category_title = "Miranda32"
26+
2527
#contact list window messages
2628
CLM_FIRST=0x1000 #this is the same as LVM_FIRST
2729
CLM_LAST=0x1100
@@ -113,6 +115,7 @@ def event_NVDAObject_init(self,obj):
113115
# Translators: The description of an NVDA command to view one of the recent messages.
114116
description=_("Displays one of the recent messages"),
115117
gestures=[f"kb:NVDA+control+{n}" for n in range(1, MessageHistoryLength + 1)],
118+
category=category_title,
116119
speakOnDemand=True,
117120
)
118121
def script_readMessage(self,gesture):

source/appModules/poedit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
LEFT_TO_RIGHT_EMBEDDING = "\u202a"
2424
"""Character often found in translator comments."""
2525

26+
category_title = "Poedit"
2627

2728
class _WindowControlIdOffset(IntEnum):
2829
"""Window control ID's are not static, however, the order of ids stays the same.
@@ -146,6 +147,7 @@ def _reportControlScriptHelper(self, obj: Window, description: str):
146147
"Reports any notes for translators. If pressed twice, presents the notes in browse mode",
147148
),
148149
gesture="kb:control+shift+a",
150+
category=category_title,
149151
speakOnDemand=True,
150152
)
151153
def script_reportAutoCommentsWindow(self, gesture):
@@ -172,6 +174,7 @@ def _get__commentObj(self) -> Window | None:
172174
"If pressed twice, presents the comment in browse mode",
173175
),
174176
gesture="kb:control+shift+c",
177+
category=category_title,
175178
speakOnDemand=True,
176179
)
177180
def script_reportCommentsWindow(self, gesture):
@@ -197,6 +200,7 @@ def _get__oldSourceTextObj(self) -> Window | None:
197200
"Reports the old source text, if any. If pressed twice, presents the text in browse mode",
198201
),
199202
gesture="kb:control+shift+o",
203+
category=category_title,
200204
speakOnDemand=True,
201205
)
202206
def script_reportOldSourceText(self, gesture):
@@ -220,6 +224,7 @@ def _get__translationWarningObj(self) -> Window | None:
220224
"Reports a translation warning, if any. If pressed twice, presents the warning in browse mode",
221225
),
222226
gesture="kb:control+shift+w",
227+
category=category_title,
223228
speakOnDemand=True,
224229
)
225230
def script_reportTranslationWarning(self, gesture):

source/appModules/powerpnt.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
from locationHelper import RectLTRB
4242
from NVDAObjects.window._msOfficeChart import OfficeChart
4343

44+
category_title = "Powerpoint"
45+
4446
# Window classes where PowerPoint's object model should be used
4547
# These also all request to have their (incomplete) UI Automation implementations disabled. [MS Office 2013]
4648
objectModelWindowClasses=set(["paneClassDC","mdiClass","screenClass"])
@@ -1242,7 +1244,8 @@ def handleSlideChange(self):
12421244
self.treeInterceptor.reportNewSlide()
12431245

12441246
class AppModule(appModuleHandler.AppModule):
1245-
1247+
scriptCategory = category_title
1248+
12461249
hasTriedPpAppSwitch=False
12471250
_ppApplicationWindow=None
12481251
_ppApplication=None

source/appModules/vipmud.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
This module makes NVDA read incoming text, as well as allowing the user to review the last nine messages with control 1 through 9.
1515
"""
1616

17+
category_title = "Vipmud"
18+
1719
class AppModule(appModuleHandler.AppModule):
1820
lastLength=0
1921
msgs =[]
@@ -26,6 +28,7 @@ def chooseNVDAObjectOverlayClasses(self, obj, clsList):
2628
# Translators: The description of an NVDA command to view one of the recent messages.
2729
description=_("Displays one of the recent messages"),
2830
gestures=[f"kb:control+{n}" for n in range(1, historyLength + 1)],
31+
category=category_title,
2932
speakOnDemand=True,
3033
)
3134
def script_readMessage(self,gesture):

0 commit comments

Comments
 (0)