Textwidget focus calculation

- Added Calculation for textwidget focus
- Merged IAction and IFunction with CustomAction and CustomFunction
- Removed a few log tests