Control.forceFocus

Forces the receiver to have the <em>keyboard focus</em>, causing all keyboard events to be delivered to it.

@return <code>true</code> if the control got focus, and <code>false</code> if it was unable to.

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@see #setFocus

  1. bool forceFocus()
    class Control
    bool
    forceFocus
    ()
  2. bool forceFocus(GtkWidget* focusHandle_)

Meta