drawFocusIfNeeded method

void drawFocusIfNeeded(
  1. JSObject elementOrPath, [
  2. Element element
])

The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.

Implementation

external void drawFocusIfNeeded(
  JSObject elementOrPath, [
  Element element,
]);