Disable mouse events on the PathControl
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 30 Jan 2011 21:41:13 +0000 (16:41 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 30 Jan 2011 21:41:13 +0000 (16:41 -0500)
web_frontend/path_control.js

index 45cbbb8ec34373d1908dd04fb444a7fb30a140bb..8d705b244c92c74f06f47230ad96351f9b21a85a 100644 (file)
@@ -27,6 +27,7 @@ goog.require('goog.ui.MenuItem');
 armadillo.PathControl = function(path, editLastComponent, opt_domHelper) {
   goog.ui.Control.call(this, opt_domHelper);
 
+  this.setHandleMouseEvents(false);
   this.setSupportedState(goog.ui.Component.State.FOCUSED, false);
 
   /**
@@ -239,6 +240,7 @@ armadillo.PathControl.prototype.componentChanged_ = function(e) {
  * @param  {Event} e
  */
 armadillo.PathControl.prototype.nameChanged_ = function(e) {
+  console.log(e);
   // TODO: assert(this.editableLastComponent_)
   this.name_ = e.target.value;
   e.stopPropagation();