summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2011-04-14 13:49:38 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2011-04-14 13:49:38 +0000
commit084a374c2b710ba1cffdc56632df9427bccd26c8 (patch)
treed370e40ea483e288d9b274258afc95a432878845 /src
parent097fc8469c462e4c7ae22c76bcae597da879b8f2 (diff)
downloadvaadin-framework-084a374c2b710ba1cffdc56632df9427bccd26c8.tar.gz
vaadin-framework-084a374c2b710ba1cffdc56632df9427bccd26c8.zip
avoid unnecessary focusing
svn changeset:18298/svn branch:6.5
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index d758c674eb..c8feb6262c 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -4560,7 +4560,9 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
* focus only if not currently focused.
*/
protected void ensureFocus() {
- scrollBodyPanel.setFocus(true);
+ if (!hasFocus) {
+ scrollBodyPanel.setFocus(true);
+ }
}
}