Function isFocused() in class GuiSpinBox is not properly supported. A spinbox contains a 'text' element which is focused or not. If such text is focused (/not focused) the entire spinbox is focused (/not focused).