Skip to content

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

@mcking65

Description

@mcking65

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.

Metadata

Metadata

Assignees

Labels

Example PageRelated to a page containing an example implementation of a patternbugCode defects; not for inaccurate prose

Type

No type

Relationships

None yet

Development

No branches or pull requests

Issue actions