1212 Dict ,
1313 Optional ,
1414)
15+ from unicodedata import category
1516
1617from comtypes import COMError , BSTR
1718import comtypes .automation
5354from utils .displayString import DisplayStringIntEnum
5455import NVDAState
5556
57+ SCRCAT_EXCEL = _ ("Excel" )
58+
5659excel2010VersionMajor = 14
5760
5861xlNone = - 4142
@@ -1438,7 +1441,8 @@ def _get_rowHeaderText(self):
14381441 @script (
14391442 # Translators: the description for a script for Excel
14401443 description = _ ("opens a dropdown item at the current cell" ),
1441- gesture = "kb:alt+downArrow" )
1444+ gesture = "kb:alt+downArrow" ,
1445+ category = SCRCAT_EXCEL )
14421446 def script_openDropdown (self ,gesture ):
14431447 gesture .send ()
14441448 d = None
@@ -1464,7 +1468,8 @@ def script_openDropdown(self,gesture):
14641468 @script (
14651469 # Translators: the description for a script for Excel
14661470 description = _ ("Sets the current cell as start of column header" ),
1467- gesture = "kb:NVDA+shift+c" )
1471+ gesture = "kb:NVDA+shift+c" ,
1472+ category = SCRCAT_EXCEL )
14681473 def script_setColumnHeader (self ,gesture ):
14691474 scriptCount = scriptHandler .getLastScriptRepeatCount ()
14701475 if scriptCount == 0 :
@@ -1486,7 +1491,8 @@ def script_setColumnHeader(self,gesture):
14861491 @script (
14871492 # Translators: the description for a script for Excel
14881493 description = _ ("sets the current cell as start of row header" ),
1489- gesture = "kb:NVDA+shift+r" )
1494+ gesture = "kb:NVDA+shift+r" ,
1495+ category = SCRCAT_EXCEL )
14901496 def script_setRowHeader (self ,gesture ):
14911497 scriptCount = scriptHandler .getLastScriptRepeatCount ()
14921498 if scriptCount == 0 :
@@ -1672,6 +1678,7 @@ def _get_positionInfo(self):
16721678 # Translators: the description for a script for Excel
16731679 description = _ ("Reports the note on the current cell" ),
16741680 gesture = "kb:NVDA+alt+c" ,
1681+ category = SCRCAT_EXCEL ,
16751682 speakOnDemand = True ,
16761683 )
16771684 def script_reportComment (self ,gesture ):
@@ -1686,7 +1693,8 @@ def script_reportComment(self,gesture):
16861693 @script (
16871694 # Translators: the description for a script for Excel
16881695 description = _ ("Opens the note editing dialog" ),
1689- gesture = "kb:shift+f2" )
1696+ gesture = "kb:shift+f2" ,
1697+ category = SCRCAT_EXCEL )
16901698 def script_editComment (self ,gesture ):
16911699 commentObj = self .excelCellObject .comment
16921700 d = EditCommentDialog (
0 commit comments