I realize that possibly not many people care about this, but since I
made more changes that work better and more consistently on my Ubuntu
with X11 system I might as well share them.
If Manolo (or someone) has enough patience and/or interest left to take
another look that would be great. If not that's fine too, at least I
have something that seems useful to me.
I believe all the arrow keys, TAB and Shift-TAB work more consistently
now including in the menu specific programs under examples/ and test/.
One thing to note about the attached patch; it reverts the last commit
by Manolo (fe4c94b4d) and restores the first commit (c1a950e25) because
that worked better for me. That might mean that some corner cases that
Manolo saw, will be present again... it depends what those cases were
and whether or not my new changes address them.
The rest of the changes are in menuwindow::handle_part1().
Finally, if no one is really interested in this I won't bug everyone
with more comments on the subject :)