klyn.gui.windows.DockWorkspace.focusedArea
property
public readonly property focusedArea as Widget
Description

Visible docking area containing the window's keyboard target.

Returns the central area, an expanded side pane, or null when focus is outside this workspace. Only the target's ancestor chain is examined.

if workspace.focusedArea is workspace.center:
    print("Editor focused")