// Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget.
// Down the line we should have a cleaner concept of focused vs active in the library.
if(g.ActiveId==id)
g.ActiveIdIsFocusedOnly=!io.MouseDown[0];
boolvalue_changed=false;
boolcancel_edit=false;
boolenter_pressed=false;
// Update some data if we are active or last active
if(g.ActiveId==id)//if (edit_state.Id == id) // Works, but double-click to select-all sets cursors to end which in turn tends to scroll toward the right when shrinking widget.
{
edit_state.BufSizeA=buf_size;
}
if(g.ActiveId==id)
{
edit_state.BufSizeA=buf_size;
// Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget.
// Down the line we should have a cleaner concept of focused vs active in the library.