Improve element focusing and keyboard accessibility for widgets