refactor: reuse coordinatesToCursor()
refactor: reuse coordinatesToCursor()

REVIEW: 112321

jfmcarreira/kate,sandsmark/kate,sandsmark/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,sandsmark/kate,hlamer/kate,DickJ/kate,cmacq2/kate,hlamer/kate,cmacq2/kate,hlamer/kate,jfmcarreira/kate,sandsmark/kate,hlamer/kate,cmacq2/kate,hlamer/kate,DickJ/kate,hlamer/kate,DickJ/kate,DickJ/kate,hlamer/kate,hlamer/kate