focus method

void focus()

Explicitly bring HTML focus to the Diagram's canvas. This is called by tools that may create other HTML elements such as TextEditingTool.

If #scrollsPageOnFocus is false, this tries to keep the page at the same scroll position that it had before calling #focus. This method is not overridable.

Implementation

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