Author: jmorliaguet
Date: Sat May 27 11:44:08 2006
New Revision: 3238

Modified:
   cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js

Log:

- don't start showing the context menu unless there is a model underneath
  that can gain focus.



Modified: cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js
==============================================================================
--- cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    
(original)
+++ cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    Sat May 
27 11:44:08 2006
@@ -2388,6 +2388,10 @@
     var element = Event.element(e);
     var selected = CPSSkins.Identifiable.getIdentifiable(element);
     if (!selected) return;
+    if (!CPSSkins.Canvas.getModel(selected)) {
+      this.wait = true;
+      return;
+    }
 
     this.mouseX = Event.pointerX(e);
     this.mouseY = Event.pointerY(e);
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to