/**
  * Overrides the parent to add code to cause the default button to be fired if an enter key is pressed
  * on a control. This purposefully does not include textarea controls, which should get the enter key to
  * insert a newline.
  *
  * @return string
  */
 public function GetEndScript()
 {
     $strJS = parent::GetEndScript();
     $strControlId = $this->GetJqControlId();
     QApplication::ExecuteJsFunction('qc.dialog', $strControlId, QJsPriority::High);
     return $strJS;
 }