Bug 191494 - Unable to switch pages in faces config editor without mouse
Summary: Unable to switch pages in faces config editor without mouse
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard: faces-config editor
Keywords: accessibility, bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2007-06-07 11:12 EDT by John Lanuti CLA
Modified: 2011-01-04 15:17 EST (History)
5 users (show)

See Also:


Attachments
Patch (3.51 KB, patch)
2008-05-29 19:17 EDT, Debajit Adhikary CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Lanuti CLA 2007-06-07 11:12:59 EDT
When trying to navigate the faces config editor without a mouse, it doesn't seem possible to change pages using the editor tabs.  This would be an accessibility issue.
Comment 1 Raghunathan Srinivasan CLA 2007-06-07 14:40:05 EDT
Consider in the 2.0.x stream
Comment 2 Raghunathan Srinivasan CLA 2008-04-25 17:01:26 EDT
Deferred due to lack of resources
Comment 3 Debajit Adhikary CLA 2008-05-08 19:17:30 EDT
Changing pages without a mouse within the Faces-Config editor seems to work if the user is in the following pages:

(1) Introduction page
(2) Navigation Rule page
(3) Source page

The keyboard shortcuts seem to be Ctrl+PgUp and Ctrl+PgDn.

This keyboard navigation does not appear to work in the other pages.
Comment 4 Debajit Adhikary CLA 2008-05-22 15:09:45 EDT
The problem seems to be when the focus is on a "section" or section header in a tab page, which is the typical element focused on by default when the user navigates to a tab page.

If the focus is on a text control or button or any other element which is not a "section" per se (e.g. if you click on the text box named "Faces Config Name" in the Overview page, or if you focus on any button (for instance by pressing Tab or clicking outside below the buttons) in the Component page), then pressing Ctrl+PgUp and Ctrl+PgDn does allow the user to navigate to the adjacent pages.
Comment 5 Debajit Adhikary CLA 2008-05-23 17:43:40 EDT
I just discovered that Eclipse has built-in support for keyboard-navigation of pages in a multi-page editor like the Faces-Config Editor.

Here's how to solve the keyboard navigation problem:

(1) Go to Eclipse Preferences > General > Keys
(2) Remap the "Next Page" command to a key-binding of your choice (e.g. Ctrl+F5)

Now you should be able to switch pages in the Faces Config Editor without using the mouse.
Comment 6 Debajit Adhikary CLA 2008-05-23 18:30:24 EDT
Similarly (as in comment #5 above) you can also remap the "Previous Page" command to a key-binding of your choice (e.g. Ctrl+Shift+F5)
Comment 7 Debajit Adhikary CLA 2008-05-29 19:17:47 EDT
Created attachment 102780 [details]
Patch

Patch to add keyboard shortcuts to navigate through pages in the Faces Config Editor.

The keyboard shortcuts are: 

Next Page: Ctrl+F5
Previous Page: Shift+Ctrl+F5

(Ctrl is actually the Meta1 key which will map appropriately to the platform, e.g. on a Mac that would map to the Command key instead of Ctrl)
Comment 8 Debajit Adhikary CLA 2008-05-29 19:19:49 EDT
Please review the patch to add keyboard shortcuts to switch pages in the Faces Config Editor.
Comment 9 Ian Trimble CLA 2011-01-04 15:17:16 EST
Committed to 3.2.3 and 3.3.0 at 2011/01/04 12:16PM PDT.