Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4056074

no way to grab a key and tie it to a specific event w/ the new event model

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.1, 1.1.2
    • client-libs
    • None
    • x86, sparc
    • generic, windows_95

      <linda.schneider@eng 6/2/97>

      There doesnt seem to "grab" a key event and always have a function
      be called (e.g. like a menushort cut w/o a menu associated w. a frame)

      e.g. we need to be able to hit the F1 key over any dialog or window and
      have the help panel come up (since we are not using a menubar ...we cant
      use a menu shortcut)

      (in the old event model, you just had each window respond to the F1 which
      was propogated up from where it was selected)

      The only way to do this with the current event model is to set up a
      key listener on every component as it is created .... a bit wasteful
      since the key events are already being passed up for menushortcuts
      and tab events.

      Since the old event API's are going away at somepoint ... it would
      be nice to have a way to do this in the jdk

            son Oleg Sukhodolsky (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: