Files
nethack/win/X11
PatR 757c51bb3c X11 menus - support pre-selected menu entries
X11 had been ignoring add_menu(..., MENU_SELECTED) to specify a
pre-selected menu entry.  This adds support for that.

Attempt to implement pre-selected entry for PICK_ONE menu sanely by
returning the pre-selected entry instead of toggling it off if the
user chooses it explicitly.   Inner workings of menus are convoluted
so I'm not sure it's 100% correct, although testing hasn't found any
problems.  (tty currently returns 0 for "nothing picked" when
explicitly picking a pre-selected entry in a PICK_ONE menu, and the
core jumps through hoops to handle it.  That can't be cleaned up until
all interfaces which support pre-selected entries achieve sanity.)

Make "random" be chosen for <return> or <enter> during role selection
and highlight it to reflect that.  (Role selection for X11 uses its
own code instead of nethack menus, so pre-selection isn't applicable.)
2016-01-30 19:39:29 -08:00
..
2016-01-21 23:13:49 -08:00
2002-01-05 21:06:02 +00:00
2015-06-09 19:59:38 +03:00
2015-05-25 09:21:31 +09:00
2002-01-05 21:06:03 +00:00
2015-11-02 01:51:58 -08:00
2015-11-02 01:51:58 -08:00
2015-11-02 01:51:58 -08:00
2002-01-05 21:06:03 +00:00
2002-01-05 21:06:03 +00:00
2015-06-09 19:59:38 +03:00
2002-01-05 21:06:03 +00:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-11-18 03:04:35 -08:00
2015-05-25 09:21:31 +09:00
2016-01-15 20:56:12 -08:00
2015-12-18 07:42:23 -08:00
2015-05-25 09:21:31 +09:00
2016-01-21 23:13:49 -08:00