Skip to content

Conversation

@feerrenrut
Copy link
Contributor

Fix for #6735
Menu items (as well as menu item checkbox and menu item radio) can be
now be activated while in browse mode.

Fix for #6735
Menu items (as well as menu item checkbox and menu item radio) can be
now be activated while in browse mode.
@feerrenrut feerrenrut requested a review from jcsteh January 19, 2017 05:58
def _get_currentNVDAObject(self):
raise NotImplementedError

ALWAYS_SWITCH_TO_PASS_THROUGH_ROLES = (
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make this a set (or a frozenset if you want it to be immutable) rather than a tuple. That makes checking membership a hash lookup instead of O(n) and this is not just a few elements. I realise it was a tuple before it was a constant. :)

controlTypes.ROLE_TABLEROW,
controlTypes.ROLE_TABLECELL,
controlTypes.ROLE_TABLEROWHEADER,
controlTypes.ROLE_TABLECOLUMNHEADER)
Copy link
Contributor

Choose a reason for hiding this comment

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

Convention for long collections is to treat the last item like every other item and put the closing parenthesis on its own line. So:

		controlTypes.ROLE_TABLECOLUMNHEADER,
	)

(The trailing comma is not a mistake.)

This means that adding a new entry at the bottom just adds a new line, rather than changing an unrelated line as well. For more on this, see this Python FAQ and this StackOverflow thread.

controlTypes.ROLE_TABLEROWHEADER,
controlTypes.ROLE_TABLECOLUMNHEADER)

SWITCH_TO_PASS_THROUGH_ON_FOCUS_ROLES = (
Copy link
Contributor

Choose a reason for hiding this comment

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

As above.

feerrenrut added a commit that referenced this pull request Feb 1, 2017
For issue #6735
Merge remote-tracking branch 'origin/i6735-ActivateMenuItemsInBrowseMode' into next
@feerrenrut feerrenrut merged commit 94e874b into master Mar 14, 2017
@nvaccessAuto nvaccessAuto added this to the 2017.2 milestone Mar 14, 2017
feerrenrut added a commit that referenced this pull request Mar 14, 2017
For PR #6761 - Web page menu items (menu item checkbox's and radio buttons) can now be activated while in browse mode.  Issue #6735
For PR #6866 - Excel sheet name reporting is now translated. Issue #6848
For PR #6884 - Pressing ESC while the configuration profile "Confirm Deletion" prompt is active now dismisses the dialog. Issue #6851
For PR #6895 - Cell border information can now be reported in Microsoft Excel by using `NVDA+f`. Issue #3044
For PR #6860 - Added support for aria-current attributes. Issue #6358
@feerrenrut feerrenrut deleted the i6735-ActivateMenuItemsInBrowseMode branch September 21, 2017 01:30
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.

4 participants