Skip to content

Commit a266137

Browse files
authored
Merge 6d1dad4 into 5601830
2 parents 5601830 + 6d1dad4 commit a266137

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

source/NVDAObjects/window/excel.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,8 +1679,11 @@ def _get_positionInfo(self):
16791679
# In Office 2016, 365 and newer, comments are now called notes.
16801680
# Thus, messages dialog title and so on should refer to notes.
16811681
@script(
1682-
# Translators: the description for a script for Excel
1683-
description=_("Reports the note on the current cell"),
1682+
description=_(
1683+
# Translators: the description for a script for Excel
1684+
"Reports the note on the current cell. "
1685+
"If pressed twice, presents the information in browse mode"
1686+
),
16841687
gesture="kb:NVDA+alt+c",
16851688
category=SCRCAT_SYSTEMCARET,
16861689
speakOnDemand=True,
@@ -1689,7 +1692,14 @@ def script_reportComment(self,gesture):
16891692
commentObj=self.excelCellObject.comment
16901693
text=commentObj.text() if commentObj else None
16911694
if text:
1692-
ui.message(text)
1695+
if repeats == 0:
1696+
ui.message(text)
1697+
elif repeats == 1:
1698+
ui.browseableMessage(
1699+
text,
1700+
# Translators: title for note on the current Excel cell dialog.
1701+
_("Note")
1702+
)
16931703
else:
16941704
# Translators: A message in Excel when there is no note
16951705
ui.message(_("Not on a note"))

user_docs/en/changes.t2t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ What's New in NVDA
1010

1111

1212
== Changes ==
13+
- Microsoft Office:
14+
- When the command to report the note of the current Excel cell is located is pressed twice (``NVDA+alt+c``), the information is presented browse mode.
15+
-
16+
-
1317

1418

1519
== Bug Fixes ==

user_docs/en/userGuide.t2t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,8 @@ Selecting a form field and pressing enter or the Move to button moves to that fi
12551255

12561256
+++ Reporting Notes +++[ExcelReportingComments]
12571257
%kc:beginInclude
1258-
To report any notes for the currently focused cell, press NVDA+alt+c.
1258+
To report any notes for the currently focused cell, press ``NVDA+alt+c``.
1259+
Pressing twice shows the information in a window.
12591260
In Microsoft 2016, 365 and newer, the classic comments in Microsoft Excel have been renamed to "notes".
12601261
%kc:endInclude
12611262
All notes for the worksheet can also be listed in the NVDA Elements List after pressing NVDA+f7.

0 commit comments

Comments
 (0)