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

force focus on a Pivot (focusable) component on page load

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 1.5.1
    • 2.5
    • None
    • None
    • Tested on Windows XP with Firefox 3.6.13 and 8.0.552.224

    Description

      A pivot applet will never gain focus after a page load. You always have to click on the applet, before it accepts key events. It seems not to be a JDK issue.

      I've created to examples which include textfield in the applet. One applet with pivot and one without. Only in the native applet the textfield gains the focus (works with Firefox and Chrome). The pivot never gains automaticly the focus without clicking the applet.

      Applet Version (immediate focus works):
      http://betrunken.de/media/appletFocusDemo/appletPlainDemo.html

      Pivot Version (immediate focus doesn't work):
      http://betrunken.de/media/appletFocusDemo/pivotPlainDemo.html

      Try to start typing after reload. It works only for the applet version.

      You can download the source from:
      http://betrunken.de/media/appletFocusDemo/demoApplet.jar

      The discussion thread can be found at:
      http://apache-pivot-users.399431.n3.nabble.com/request-focus-in-my-pivot-applet-on-page-load-td2085547.html

      Attachments

        1. kitchen-sink_test.html
          3 kB
          Sandro Martini
        2. pivot686_test_forceFocus_enabled.html
          2 kB
          Sandro Martini
        3. pivot686_test.html
          2 kB
          Sandro Martini

        Activity

          People

            rwhitcomb Roger Lee Whitcomb
            felix41382 Felix
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: