Device.getDirection

pango.types.Direction getDirection()

Returns the direction of effective layout of the keyboard.

This is only relevant for keyboard devices.

The direction of a layout is the direction of the majority of its symbols. See funcPango.unichar_direction.

Returns

[pango.types.Direction.Ltr] or [pango.types.Direction.Rtl]

if it can determine the direction. [pango.types.Direction.Neutral] otherwise