now shiftmode and altmode is recoreded in Keys module. So all the UIs
are sharing these two mode instead of remembering their own. These fix
the bug in UI switchings.
For instance, you use combo 'Alt'+'b' to fire up some menu in pdfreader,
the altmode is set, but the alt key was released after the menu show
up. Then the key release event will only be captured by the menu. So
after you exit from the menu, the altmode is still set in pdfreader,
which is not what we want.
Conflicts:
filechooser.lua
* merge rotate branch with search branch
* fix font display bug in font menu
not fully tested the new rotation implemention yet.
adjustFWKey() will change code event for five way keys
according to current rotation mode. Add this to the
input.waitForEvent loop and your UI can navigate properly
in different rotation mode.