Skip to content

Keyboard shortcut is sometimes not properly read for Java applications #10994

@raducoravu

Description

@raducoravu

In a Java application I have a menu item with Ctrl-F6 set as accelerator.
NVDA reads the shortcut as "control plus" without reading the F6 key at all. JAWS properly reads the entire shortcut.

  public static void main(String[] args) {
    JFrame fr = new JFrame();
    JMenuBar mb = new JMenuBar();
    JMenu menu = new JMenu("windows");
    JMenuItem mi = new JMenuItem("abc");
    mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F6, KeyEvent.CTRL_DOWN_MASK));
    menu.add(mi);
    mb.add(menu);
    fr.setJMenuBar(mb);
    fr.setSize(500, 500);
    fr.setVisible(true);
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions