-
-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Give ui.browseableMessage the ability to show copy and close buttons after the message, and add buttons to some instances" #16998
Conversation
…buttons …" This reverts commit 2e09be1.
WalkthroughThe recent changes streamline the NVDA application by simplifying the user interface for displaying browsable messages. Key parameters related to button visibility have been removed, and JavaScript functionality has been reduced to solely handle closing messages with the Escape key. These modifications enhance usability while focusing on essential features, reflecting a shift towards a more minimalist design. Changes
Assessment against linked issues
Recent review detailsConfiguration used: .coderabbit.yml Files selected for processing (4)
Additional context usedPath-based instructions (4)
Additional comments not posted (8)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (5)
user_docs/en/changes.md (5)
Line range hint
1-3
:
Ensure consistent style with one sentence per line.The entry about the
-c
/--config-path
and--disable-addons
options is correctly formatted. However, ensure that all entries follow the style of one sentence per line for consistency.
Line range hint
2-3
:
Clarify language addition details.The entry about eSpeak NG could be clearer by specifying that the new languages are added to the supported list.
* eSpeak NG has been updated to 1.52-dev commit `961454ff`. (#16775) * New languages, Faroese and Xextan, have been added to the supported list.
Line range hint
4-5
:
Ensure clarity and adherence to style guidelines.The entry about redirecting objects is clear and references an issue and author correctly. Ensure that all entries maintain clarity and adhere to the style of one sentence per line.
Line range hint
5-6
:
Clarify the SCons parameter entry.The entry about the SCons parameter could be clearer by specifying its effect on build performance.
* Running SCons with the parameter `--all-cores` will automatically select the maximum number of available CPU cores, optimizing build performance. (#16943, #16868, @LeonarddeR)
Line range hint
6-7
:
Ensure clarity and consistency in developer info entry.The entry about developer info is clear but ensure consistency in style by maintaining one sentence per line.
Re the ding issue, I had just opened an issue so that it is tracked. I am not opposed to keep this known issue if it is documented in the known issues of the (possibly future) PR and if the consensus is that the drawback of the ding does not compensate the added value of a shortcut key. |
@CyrilleB79 What do you think of switching to Ctrl+Alt+C? That does not ding.
|
I wouldn't go with |
@SaschaCowley I thought of that. Pretty much anything could. Google Docs, for example, uses lots of Ctrl+Alt combinations in their keyboard interfaces. Not that I advocate emulating their style in anything, but my point is it's pretty common not to take possible desktop shortcuts into account.
I'm personally fine with this button not having an accelerator at all, but a couple people seemed to expect one.
|
@XLTechie that's true, but I suspect a high number of NVDA users use desktop shortcut hotkeys, so I think |
All right, Ctrl+Shift+C it is.
|
CTRL + INSERT is a pretty common alternative to ctrl+c in windows, not sure if thats viable |
@seanbudd Would NVDA users expect Insert (i.e. the NVDA key) to be used in this way? I didn't test that one, but shall do for completeness. |
Ctrl+insert was common in DOS times, but is much less common, or at least much less advertised, since Windows 95, even if still supported. Moreover, it is clearly still less used by NVDA or Jaws users due to the Insert key being used as NVDA/Jaws key. So that's not a desirable choice at all. The best solution would be to remove the ding if @SaschaCowley's suggestion works and keep alt+c. If not possible, I am unsure if no shortcut at all is better or if something else less common (e.g. control+shift+c) would be suitable. |
Oh sorry, just realized that Sasha's suggestion does not work. |
Reverts PR
Reverts #16369
Issues fixed
Fixes #16996
Fixes #16995
Issues reopened
Reopens #14641
Reason for revert
Security tightening requested by @seanbudd, caused an inadvertent recurrence of #12004. (#16995)
In addition, a known (but I thought minor) quirk of the original PR, was that users pressing the
Alt+C
key combination to activate the copy button, would hear a ding. This is a "feature" of MSHTML, and not something for which I believe there is a solution. NVDA did speak a message indicating that text was successfully copied, but @CyrilleB79 suggested that was not enough to negate the ding. (#16996)Can this PR be reimplemented? If so, what is required for the next attempt
For the blank lines issue, there are a couple possible paths forward:
\n
with<br>
, and feed it to.innerHTML
instead of.innerText
. This re-raises one of @seanbudd's original concerns about the use of.innerHTML
, however, so may not be viable.ui.browseableMessage
, every other line is empty #16995 (comment), but further investigation is required.For the ding on
Alt+C
issue, there are two possibilities known to me:Alt
, which makes it unusual for button activation. Perhaps @CyrilleB79 has ideas.Summary by CodeRabbit
--all-cores
parameter for optimized performance.