Skip to content

Commit 66df28d

Browse files
authored
Merge 522b8d3 into 69bfb94
2 parents 69bfb94 + 522b8d3 commit 66df28d

3 files changed

Lines changed: 17 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in NVDA
1010

1111

1212
== Changes ==
13+
- Microsoft Office:
14+
- When command for report the note on the current Excel cell (NVDA+Alt+C) pressed twice, presents the information in browse mode.
15+
-
1316

1417

1518
== Bug Fixes ==

user_docs/en/userGuide.t2t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ 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. Pressing twice shows the information in a window.
12591259
In Microsoft 2016, 365 and newer, the classic comments in Microsoft Excel have been renamed to "notes".
12601260
%kc:endInclude
12611261
All notes for the worksheet can also be listed in the NVDA Elements List after pressing NVDA+f7.

0 commit comments

Comments
 (0)