Skip to content

Allow the Read status bar command to copy its contents on the third keypress #7577

Merged
feerrenrut merged 10 commits into
nvaccess:masterfrom
ehollig:i1785
Oct 3, 2017
Merged

Allow the Read status bar command to copy its contents on the third keypress #7577
feerrenrut merged 10 commits into
nvaccess:masterfrom
ehollig:i1785

Conversation

@ehollig

@ehollig ehollig commented Sep 7, 2017

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #1785

Summary of the issue:

When pressing the command say window title thrice, the text is copied to the clipboard. This is currently not possible with the report status bar command.

Description of how this pull request fixes the issue:

This allows for the report status bar command to copy the information to the clipboard, similar to say window title.

Testing performed:

Opened notepad and performed the report status bar command thrice. Pasted the contents of the status bar into the file.

Known issues with pull request:

No information was spoken when performing the command three times in Internet Explorer 11.

Change log entry:

• changes:
• it is now possible to press the report status bar command three times to copy the status bar text to the clipboard.

@bhavyashah

bhavyashah commented Sep 8, 2017 via email

Copy link
Copy Markdown

@josephsl

josephsl commented Sep 8, 2017 via email

Copy link
Copy Markdown
Contributor

Comment thread source/globalCommands.py Outdated
@@ -1,4 +1,4 @@
# -*- coding: UTF-8 -*-
# -*- coding: UTF-8 -*-

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Somehow, a weird character ended up at the start of this line. Could you have saved the file as UTF-8 with BOM? You might as well add your name to the copyright line in the process.

@LeonarddeR

Copy link
Copy Markdown
Collaborator

Congratulations with your first code contribution!

@derekriemer derekriemer changed the title Allow the Read status bar command copy its contents on third press Allow the Read status bar command to copy its contents on the third keypress Sep 10, 2017
@derekriemer

Copy link
Copy Markdown
Collaborator

Suggested whats new entry:

  • changes:
  • it is now possible to press the report status bar command three times to copy the status bar text to the clipboard.

@derekriemer

Copy link
Copy Markdown
Collaborator

Oh, by the way, congrats on your first code contribution!

@derekriemer

Copy link
Copy Markdown
Collaborator

Nice work. Just one thing I found, which are required.

Comment thread source/globalCommands.py
speech.speakSpelling(text)
else:
if api.copyToClip(text):
ui.message(_("%s copied to clipboard")%text)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need a translators comment above this line. Something like
#Translators: The message presented when the status bar is copied to the clipboard.

Comment thread user_docs/en/userGuide.t2t Outdated
@@ -1,4 +1,4 @@
NVDA NVDA_VERSION User Guide
NVDA NVDA_VERSION User Guide

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

unintentional line change? maybe crlf?

@derekriemer derekriemer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nice fox

@derekriemer

Copy link
Copy Markdown
Collaborator

rar, I'm dumb.
Nice fix

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good @ehollig, thanks for the contribution! Don't worry about it for this PR, we tend to update the en/changes.t2t file directly on master when we complete the merge. We do squash merges to master, and regular merges to next during incubation. This can cause merge conflicts in the changes file. That said, its really handy that the change log entry is provided on the PR (there is a section for it in the PR template). Thanks again!

feerrenrut added a commit that referenced this pull request Sep 12, 2017
Merge remote-tracking branch 'origin/pr/7577' into next
feerrenrut added a commit that referenced this pull request Sep 13, 2017
Re-incubate #7577 to fix BOM in globalCommands.py
Merge remote-tracking branch 'origin/pr/7577' into next
@derekriemer

Copy link
Copy Markdown
Collaborator

@feerrenrut Ethan isn't in contributers.txt, FYR

@dan1982code

Copy link
Copy Markdown

I noticed that the NVDA insert+1 help message for this command talks about copying the title (not status bar) to the clipboard on third press.

@josephsl

josephsl commented Sep 16, 2017 via email

Copy link
Copy Markdown
Contributor

@ehollig

ehollig commented Sep 16, 2017

Copy link
Copy Markdown
Contributor Author

Thank you for pointing this out. It has been corrected. CC @@feerrenrut

@ehollig ehollig requested a review from feerrenrut September 18, 2017 02:16
feerrenrut added a commit that referenced this pull request Sep 20, 2017
Merge remote-tracking branch 'origin/pr/7577' into next
@feerrenrut feerrenrut merged commit aee1fbc into nvaccess:master Oct 3, 2017
@nvaccessAuto nvaccessAuto added this to the 2017.4 milestone Oct 3, 2017
feerrenrut added a commit that referenced this pull request Oct 3, 2017
@LeonarddeR

Copy link
Copy Markdown
Collaborator

The grammar for the changes entry in the what's new is wrong. "it's" should be "its", and I belief it should be either "its content is", or "its contents are". I'm no expert though.

@dan1982code

Copy link
Copy Markdown

Found another typo in the changes: "compaired with installs of previous NVDA versions."

@josephsl

josephsl commented Oct 3, 2017 via email

Copy link
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the Read status bar command copy its contents on third press like Report window title

8 participants