Bug 949905 - wait until transition end to show keyboard

also prevent users from interrupting the transition of panels.
Merge pull request #14946 from evelynhung/issue-949905-v1.2f

Bug 949905 - wait until transition end to show keyboard, r=evelyn