finally resolved mouse clicking issue in insert mode while typing