Finally: a working isCursorVisible()