diff options
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r-- | framework/Web/UI/TControl.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index af925d98..a3c031f4 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -371,6 +371,14 @@ class TControl extends TComponent }
/**
+ * Sets input focus to this control.
+ */
+ public function focus()
+ {
+ $this->getPage()->setFocus($this);
+ }
+
+ /**
* Returns the client ID of the control.
* The client ID can be used to uniquely identify
* the control in client-side scripts (such as JavaScript).
|