ShellMenu modified to avoid broken select call after getText is called
(fixes #749)