Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-284

Keyboard navigation over disabled menu item throws exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: wtk
    • Labels:
      None

      Description

      Steps to reproduce:

      1) Open the File menu in the kitchen sink demo
      2) Press the down arrow enough times to try to skip over the disabled menu item

      Result:

      java.lang.IllegalStateException
      at org.apache.pivot.wtk.Menu$Item.setActive(Menu.java:167)
      at org.apache.pivot.wtk.Menu.activateNextItem(Menu.java:699)
      at org.apache.pivot.wtk.skin.terra.TerraMenuSkin.keyPressed(TerraMenuSkin.java:403)
      at org.apache.pivot.wtk.Component$ComponentKeyListenerList.keyPressed(Component.java:555)
      at org.apache.pivot.wtk.Component.keyPressed(Component.java:2616)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processKeyEvent(ApplicationContext.java:1207)
      at java.awt.Component.processEvent(Component.java:6040)
      at java.awt.Component.dispatchEventImpl(Component.java:4630)
      at java.awt.Component.dispatchEvent(Component.java:4460)
      at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
      at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
      at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
      at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
      at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
      at java.awt.Component.dispatchEventImpl(Component.java:4502)
      at java.awt.Container.dispatchEventImpl(Container.java:2099)
      at java.awt.Window.dispatchEventImpl(Window.java:2475)
      at java.awt.Component.dispatchEvent(Component.java:4460)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

        Attachments

          Activity

            People

            • Assignee:
              gbrown Gregory K. Brown
              Reporter:
              tvolkert Todd Volkert
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: