Opened 11 years ago

Last modified 10 years ago

#839 new defect

IZ1: Shift+F10 does not bring up a context menu for nodes in the navigator

Reported by: jana Owned by:
Priority: normal Milestone:
Component: gui Version: current
Severity: Keywords: Sun common


[Imported from gridengine issuezilla]

        Issue #:      1            Platform:     Sun       Reporter: jana (jana)
       Component:     nbgui           OS:        All
     Subcomponent:    common       Version:      current      CC:    None defined
        Status:       NEW          Priority:     P3
      Resolution:                 Issue type:    DEFECT
                               Target milestone: 6.2u6
      Assigned to:    andre (andre)
      QA Contact:     andre
       * Summary:     Shift+F10 does not bring up a context menu for nodes in the navigator
   Status whiteboard:

     Issue 1 blocks:
   Votes for issue 1:     Vote for this issue

   Opened: Thu Jul 23 06:48:00 -0700 2009 

Shift+F10 does not bring up a context menu for nodes in the navigator panel.
This a default keyboard shortcut to bring up a context menu for GUI elements.

This is a 508 compliance bug from accessibility point it is a severe bug
because the context menu cannot be invoked by using the keyboard. However, the
important items from the menus, i.e.  monitor <object>, and properties, are
also accessible from the toolbar menu, so only few items, such as filter and
sort are not accessible.

Suggested Fix / Work Around:
The defect should be fixed by enabling Shoft+F10

This functionality should work by default on NB Platform nodes, without having
to do anything special.

The other way would be to add KeyListener to Navigator, but that did not seem
to work either.

The KeyAdapter should implement keyPressed method which should look similar to

private class NavigatorKeyAdapter extends KeyAdapter {
        public void keyPressed(KeyEvent e) {
            if ((e.getKeyCode() == KeyEvent.VK_CONTEXT_MENU)
                            || ((e.getKeyCode() == KeyEvent.VK_F10) &&
(e.getModifiers() == InputEvent.SHIFT_MASK))) {

get currently selected node
get the x and y coordinates of the selected node
get the Actions from this node
create a popup menu from these actions
show the popup menu in appropriate coordinates



How to test:
Select a node in the navigator and press Shift+F10

0.5 PD, but since the obvious way does not work probably more

   ------- Additional comments from zsiga Mon Dec 14 03:40:09 -0700 2009 -------
Change milestone to 62u6.

Change History (0)

Note: See TracTickets for help on using tickets.