Save the op type before fetching root document.

So that we won't lose the op type if user releases ctrl key after
dropping, but before we get the root document.

Test: Auto tests.
Change-Id: Ib35dcb84079ce21c82f2953d75969a7ebfb79021
3 files changed