added enabling/disabling of onscreen keyboard for tablet/laptob mode