
Due to asynchronous event handling, sometimes the _focused flag is not properly set to 'true' even when the input is focused. With this change, the _focused flag is set to true on keydown in the input. Also sets a parameter on the cursor-manager for better UX. Bug: Issue 4950 Change-Id: Ib53942f0d1ff86351bdbd33770696e1bb3e029ca