Add focus() method to dropdown

Also simplify input-number a wee bit.

Auditors: jack