Bug Tracker

Ticket #2740 (new feature)

Opened 7 months ago

[treeview]

Reported by: Elwood Assigned to: anonymous
Type: feature Priority: major
Milestone: 1.2.3 Component: plugin
Version: 1.2.3 Keywords: keypress, keyboard keys
Cc: Needs: Review

Description

Hi people! Forgive my English (Google Translate).

I just want to inform you that it is not possible folding and unfolding tree from the keyboard, which means a a significant dependence on the mouse device and it affects the Priority 2 of the WCAG.

I added event keypress in the "applyClasses":

... / / Apply event to hitarea this.find ( "div." CLASSES.hitarea +). click (toggle); this.find ( "div." CLASSES.hitarea +). keypress (toggle); ...

And in this event we can control which key has been pressed:

... // handle toggle event function toggler(e) {

if (e.keyCode == 13 e.keyCode == 'undefined') {

...

Let me know what you think.

Alex

Attachments

Note: See TracTickets for help on using tickets.