doFocus method

void doFocus()

(undocumented) Focus the Diagram's canvas, allowing it to receive keyboard events. This is called upon activation of mouseDown or mouseMove tools, or on any mouseUp.

This is normally implemented as a simple call to #focus. Override this if you do not wish to focus the canvas under certain circumstances. However the method should call #focus most of the time in order to get the normal behaviors.

#lastInput can be used to inspect the mouseDown event that calls this method. @expose

Implementation

void doFocus() {
  _i4.callMethod(
    this,
    'doFocus',
    [],
  );
}