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

Navigation Tree View examples: enter key and modifier keys are not correctly handled #364

Closed
mcking65 opened this issue Apr 20, 2017 · 6 comments
Assignees
Labels
bug Code defects; not for inaccurate prose Example Page Related to a page containing an example implementation of a pattern

Comments

@mcking65
Copy link
Contributor

Resolve the following bugs in the handleKeydown function in treeview/treeview-2/js/treeitemLinks.js:

  1. It incorrectly captures printable char keys that are pressed in combination with ctrl, alt, or meta modifiers. Such key events should be allowed to propagate.
  2. It should allow any keydown event where alt or meta modifier is pressed to propagate.
  3. At least in Firefox and Chrome, the enter simulation of click does not work.
  4. It does not support ctrl+enter or shift+enter functionality (ctrl+click or shift+click) for opening in new tab or new window.
@mcking65 mcking65 added bug Code defects; not for inaccurate prose Example Page Related to a page containing an example implementation of a pattern labels Apr 20, 2017
@mcking65 mcking65 added this to the Jan 2017 Clean Up milestone Apr 20, 2017
@jongund
Copy link
Contributor

jongund commented Apr 24, 2017

Fixed this bug and is part of current pull request

mcking65 pushed a commit that referenced this issue Apr 24, 2017
1. For issues #364 and #367, fix modifier key behavior.  When a modifier key is pressed, the key press is ignored. One defect remains with modifiers: if shift is the only modifier pressed in combination with a printable char, the key press should not be ignored.
2. To fix issue #365, changed left arrow behavior so a branch is not collapsed when navigating from a child node to a parent node.
3. Fixed a formatting bug.
@mcking65
Copy link
Contributor Author

Thank you @jongund!
Left arrow and most modifier key issues are fixed now with pull #374.

It still appears to me that enter, ctrl+enter, and shift+enter do not work in Firefox Or Chrome.

Also, if Shift is typed with a printable char, the key press is ignored. I believe that we should be allowing shift with printable chars so that if a tree item starts with a cap or with something like $ that the typeahead will still work.

@jongund
Copy link
Contributor

jongund commented Apr 24, 2017 via email

@jongund
Copy link
Contributor

jongund commented Apr 24, 2017 via email

@jongund
Copy link
Contributor

jongund commented Apr 24, 2017 via email

mcking65 pushed a commit that referenced this issue Apr 25, 2017
For issue #364, fix bug preventing Enter, CTRL+Enter, and Shift+Enter from executing links in the navigation treeview examples.

For issue #367, allow the Shift modifier to be used with printable characters for typeahead in the treeviews.
@mcking65
Copy link
Contributor Author

With pull 377, this issue is now fixed. Thank you @jongund!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Code defects; not for inaccurate prose Example Page Related to a page containing an example implementation of a pattern
Development

No branches or pull requests

2 participants