| CODENOTIFIER | HelpYou are not signed inSign in |
Project: gwt-ext
Revision: 1811
Author: mlim1972
Date: 20 Aug 2008 13:00:51
Changes:FF did not get focus unless it has a tabindex
Files:| ... | ...@@ -42,7 +42,6 @@ | |
| 42 | 42 | |
| 43 | 43 | public FocusPanel() { |
| 44 | 44 | super(); |
| 45 | setAttribute("tabindex", 0, true); | |
| 46 | 45 | setStyle("visibility: visible"); |
| 47 | 46 | } |
| 48 | 47 | |
| ... | ...@@ -53,7 +52,6 @@ | |
| 53 | 52 | */ |
| 54 | 53 | public FocusPanel(String title) { |
| 55 | 54 | super(title); |
| 56 | setAttribute("tabindex", 0, true); | |
| 57 | 55 | setStyle("visibility: visible"); |
| 58 | 56 | } |
| 59 | 57 | |
| ... | ...@@ -64,7 +62,6 @@ | |
| 64 | 62 | */ |
| 65 | 63 | public FocusPanel(String title, String html) { |
| 66 | 64 | super(title, html); |
| 67 | setAttribute("tabindex", 0, true); | |
| 68 | 65 | setStyle("visibility: visible"); |
| 69 | 66 | } |
| 70 | 67 | |
| ... | ...@@ -77,7 +74,6 @@ | |
| 77 | 74 | */ |
| 78 | 75 | public FocusPanel(String title, int width, int height) { |
| 79 | 76 | super(title, width, height); |
| 80 | setAttribute("tabindex", 0, true); | |
| 81 | 77 | setStyle("visibility: visible"); |
| 82 | 78 | } |
| 83 | 79 | |
| ... | ...@@ -155,9 +151,11 @@ | |
| 155 | 151 | |
| 156 | 152 | // Chaining the renderer from the caller... |
| 157 | 153 | listener.onRender(component); |
| 154 | ||
| 155 | // Setting a tab index of 0 so that firefox can set focus on it. | |
| 156 | setTabIndex(0); | |
| 158 | 157 | } |
| 159 | 158 | }); |
| 160 | ||
| 161 | 159 | //wheel... http://adomas.org/javascript-mouse-wheel/ |
| 162 | 160 | } |
| 163 | 161 |