fixed issues with virtual keyboard #927