Macaw OS C reference

Function ui_typing

#include <macawui.h>
int ui_typing(void);

Tells you whether a text box is taking the keys. While it is, Ctrl+C, X, V and A are the text box's, not your menus'.

Parameters

It takes nothing.

Returns int

1 if a text box has the focus, 0 if not.

In The keyboard's focus, and where widgets are, with ui_focus, ui_setfocus, ui_rect.