Skip to content

Conversation

@abdel792
Copy link
Contributor

@abdel792 abdel792 commented Apr 15, 2019

Link to issue number:

Fixes #9499

Summary of the issue:

In the module 'NVDAObjects.window.excel.py', in the ExcelWorksheet class and more particularly, in the gestures parameter of the scriptHandler.script decorator, some gestures are missing.

When the user moves to the reverse located cell with shift + enter or shift + numpadEnter, no information is announced by NVDA, while the focus has moved to the reverse located cell (left, up, right or down, according to user's configuration in Excel).

Description of how this pull request fixes the issue:

This PR adds 2 gestures in the excel.py module mentioned above for NVDA to announce the reverse located cell:

  • shift+enter;
  • shift+numpadEnter.

Testing performed:

  • Open Excel;
  • In a sheet, move to cell B2 for example, with the arrow keys;
  • Realize the gesture Shift+Enter or Shift+numpadEnter, the reverse located cell to which you have moved is announced.

Test performed on Office 2016, with Windows-10 version 1803.

Known issues with pull request:

None, but it may require further testing and opinion from developers and users.

Change log entry:

Section: Bug fixes

In Microsoft Excel, the user obtains the announcement of the reverse located cell when using the shift + enter and shift + numpadEnter gestures.

…us cell in the same column in Excel;

* In principle, as the enter and numpadEnter keys announce the next cell in the same column, the shift+enter and shift+numpadEnter keys should announce the previous cell;
* In fact, moving to previous or next cell is integrated by default in Excel, NVDA should just announce the current cell with each move.
@Novalis7747
Copy link

thanks for that, I hope this gets merged soon.

@DrSooom
Copy link

DrSooom commented Apr 16, 2019

@comanna
Copy link
Contributor

comanna commented Apr 16, 2019 via email

@Novalis7747
Copy link

Novalis7747 commented Apr 16, 2019 via email

@DrSooom
Copy link

DrSooom commented Apr 16, 2019

Microsoft Excel 2010 » Options » Advanced » Move selection after pressing the Enter key (enabled by default) and its direction (down by default). Shift+Enter reverses the direction.

@abdel792
Copy link
Contributor Author

Hi,
@DrSooom:

Thank you, I followed the instructions described in the Wiki before creating this PR, I chose the draft type.

@comanna:

Thanks for the explanations, there is just a small detail:

Here, with Office 2016 and earlier versions, Enter moves a cell down, not up, as @Novalis7747 said.

Kind regards.

@comanna
Copy link
Contributor

comanna commented Apr 16, 2019 via email

@abdel792
Copy link
Contributor Author

@comanna:

No problem.

Your explanations about the action of Enter key after moving with tab are very useful, I didn't know that.

Kind regards.

@comanna
Copy link
Contributor

comanna commented Apr 16, 2019 via email

@DrSooom
Copy link

DrSooom commented Apr 17, 2019

The user obtains the announcement of the cell located a line above when using the shift + enter and shift + numpadEnter gestures.

As the direction can be set by the user – as I mentioned before –, this sentence isn't fully correct.

The user obtains the announcement of the reverse located cell on pressing Shift+Enter and Shift+NumpadEnter in Microsoft Excel.

@abdel792 abdel792 changed the title Added shift+enter and shift+numpadEnter keys to announce the previous cell in the same column in Excel Added shift+enter and shift+numpadEnter keys to announce the reversed cell in the same column in Excel Apr 17, 2019
@abdel792 abdel792 changed the title Added shift+enter and shift+numpadEnter keys to announce the reversed cell in the same column in Excel Added shift+enter and shift+numpadEnter keys to announce the reverse located cell in the same column in Excel Apr 17, 2019
@abdel792
Copy link
Contributor Author

@DrSooom:

Thank you, you're right, I just corrected that.

I hope this PR will be merged very soon.

Kind regards.

@DrSooom
Copy link

DrSooom commented Apr 19, 2019

The user obtains the announcement of the reverse located cell when using the shift + enter and shift + numpadEnter gestures.

This PR is limited to Microsoft Excel. Therefore please add this information to the changelog entry as well. Thanks.

Interesting: These hotkeys already works as expected in LibreOffice Calc 6.2.3.2 with NVDA 2018.1. And here you can change their directions in the options too like in Microsoft Excel. (I know that the AppModule "soffice" is used for LibreOffice, but I just wanted to note this down. So, it's very nice to get this feedback now in Microsoft Excel as well.)

@abdel792
Copy link
Contributor Author

@LeonarddeR:

Thanks a lot for your approval, I'll be very happy to see this change in the 2019.2 version of NVDA.

@DrSooom:

Thanks for this detail, I just corrected the Change log entry.

Kind regards.

@feerrenrut feerrenrut removed the request for review from michaelDCurran May 2, 2019 16:09
Copy link
Contributor

@feerrenrut feerrenrut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I have tested this in Excel 2013, it works as expected.

@feerrenrut
Copy link
Contributor

In the testing performed section, please mention the versions of office / windows.

@feerrenrut feerrenrut merged commit 203ee7f into nvaccess:master May 2, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.2 milestone May 2, 2019
feerrenrut added a commit that referenced this pull request May 2, 2019
In Microsoft Excel, the cell location is announced after it changes due to the shift+enter or shift+numpadEnter gestures. (Issue #9499)
@abdel792
Copy link
Contributor Author

abdel792 commented May 3, 2019

Thanks @feerrenrut,

I just updated the Testing performed section.

Kind regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Announce the reverse located cell after moving to it when pressing shift + enter

7 participants