Skip to content
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

Fix keyboard help hotkey issues #50

Merged
merged 5 commits into from
Jan 18, 2016

Conversation

itsjeyd
Copy link
Contributor

@itsjeyd itsjeyd commented Jan 15, 2016

This PR fixes the following bugs affecting user interaction with DnDv2:

  • If multiple DnDv2 blocks are on the same page, pressing hotkey (?) brings up multiple dialogs.
  • It's almost impossible to enter ? into any of the text boxes in the block settings in Studio, since it brings up the keyboard help dialog instead.

It also extends existing tests for interacting with the "Keyboard Help" dialog:

  • interact_with_keyboard_help now checks if dialog can be dismissed by pressing ESC.
  • MultipleBlocksDataInteraction test now includes a test_keyboard_help method which verifies that keyboard help works correctly when multiple DnDv2 blocks are present.

Test instructions

  1. In the LMS, verify that pressing "?" does not bring up the "Keyboard Help" dialog -- we decided to remove this functionality (cf. this comment).
  2. In Studio, try to edit a DnDv2 exercise and enter ? into a few different input fields. You should be able to do that without the "Keyboard Help" dialog popping up.
  3. Lastly, using a unit that includes more than one DnDv2 exercise, check that clicking "Keyboard Help" (in the LMS) does not bring up multiple dialogs.

dialog, even if page/unit contains multiple DnDv2 exercises.
This fixes two issues related to keyboard help for DnDv2:

- If multiple DnDv2 blocks are on the same page, pressing global
  shortcut ("?") brings up multiple dialogs
- It's almost impossible to enter "?" into any of the text boxes in the
  block settings in Studio, since it brings up the keyboard help dialog
  instead

Not using "?" as a global shortcut for "Keyboard Help" also means that
DnDv2 will not conflict with other XBlocks and/or runtimes that might be
using the same shortcut to, e.g., bring up help dialogs.
@agaylard
Copy link
Contributor

@itsjeyd 👍

itsjeyd added a commit that referenced this pull request Jan 18, 2016
@itsjeyd itsjeyd merged commit ae0832c into openedx:master Jan 18, 2016
@bradenmacdonald bradenmacdonald deleted the fix-keyboard-help branch September 30, 2017 21:18
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.

3 participants