]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/ViewPane.js
Fix various problems with focus management
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-src / class / org / argeo / ria / components / ViewPane.js
index bc7c8daa0a82e8cb455a2edabbe06e3678660b9f..174174a7cc6b004f089665b2643bbc5045cba13c 100644 (file)
@@ -207,12 +207,13 @@ qx.Class.define("org.argeo.ria.components.ViewPane",
        },
        
        focus : function(){
+               if(this.hasFocus) return;
                this.setDecorator(new qx.ui.decoration.Single(1,"solid","#065fb2"));
-               qx.event.Timer.once(function(){
-                       this.fireEvent("changeSelection");
-               }, this, 200);
+               this.fireEvent("changeSelection");
+               this.hasFocus = true;
        }, 
        blur : function(){
+               this.hasFocus = false;
                this.setDecorator(new qx.ui.decoration.Single(1,"solid","#000"));
        }