Fixed focus problem when window is focused
- also fixed next line not being pasted correctly.