grabKeyboard method

Future<bool> grabKeyboard()

Grabs the keyboard.

Exclusive on Linux X11; returns false on Wayland and other platforms.

@platforms linux

Implementation

Future<bool> grabKeyboard() async {
  return _target?.grabKeyboard() ?? false;
}