Bug 1065961 - Sometimes the last alternative key would be wrongly
 highlighted.
  - use math to calculate the transfered menu target.
  - move the main calculation into MenuView's getMenuTarget.
Merge pull request #23946 from RudyLu/keyboard/Bug1065961

Bug 1065961 - Sometimes the last alternative key would be wrongly highlighted.
r=timdream